]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
CI: build project in containers
authorIker Pedrosa <ipedrosa@redhat.com>
Fri, 3 Mar 2023 14:30:55 +0000 (15:30 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sun, 26 Mar 2023 17:45:34 +0000 (12:45 -0500)
Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
.github/workflows/runner.yml

index 7b359eea45701d6f3a69042db0d023adc7dca972..b1cb3aa574eff6751487c03199daa948639acf31 100644 (file)
@@ -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