diff options
author | Iker Pedrosa <ipedrosa@redhat.com> | 2023-03-03 15:30:55 +0100 |
---|---|---|
committer | Serge Hallyn <serge@hallyn.com> | 2023-03-26 12:45:34 -0500 |
commit | d4f31a5b3e1e61b6d8e29317b8d546dd16c361f7 (patch) | |
tree | a57f920e1236f355645cb8c01dcd37395d5cec42 | |
parent | 411a66476d0f12ffdc127eed033a511d37ec991a (diff) |
CI: build project in containers
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
-rw-r--r-- | .github/workflows/runner.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/runner.yml b/.github/workflows/runner.yml index 7b359eea..b1cb3aa5 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 |