From: Iker Pedrosa Date: Fri, 3 Mar 2023 14:30:55 +0000 (+0100) Subject: CI: build project in containers X-Git-Tag: 4.14.0-rc1~133 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f31a5b3e1e61b6d8e29317b8d546dd16c361f7;p=thirdparty%2Fshadow.git CI: build project in containers Signed-off-by: Iker Pedrosa --- diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index 7b359eea4..b1cb3aa57 100644 --- a/.github/workflows/runner.yml +++ b/.github/workflows/runner.yml @@ -51,3 +51,26 @@ jobs: cd tests sudo ./run_some cat testsuite.log + + container-build: + runs-on: ubuntu-latest + strategy: + matrix: + os: [alpine, debian, fedora] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Build container + run: | + docker buildx build -f ./share/containers/${{ matrix.os }}.dockerfile . --output build-out + + - name: Store artifacts + uses: actions/upload-artifact@v3 + with: + name: ${{ matrix.os }}-build + path: | + ./build-out/config.log + ./build-out/config.h + if-no-files-found: ignore