From d4f31a5b3e1e61b6d8e29317b8d546dd16c361f7 Mon Sep 17 00:00:00 2001 From: Iker Pedrosa Date: Fri, 3 Mar 2023 15:30:55 +0100 Subject: [PATCH] CI: build project in containers Signed-off-by: Iker Pedrosa --- .github/workflows/runner.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) 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 -- 2.47.2