This makes it much easier to add additional "smoke-tests" to contrib.yml. The
previous set-up also didn't allow to easily see all failures when a single
build fails, because it would abort after any failed step.
---
 .github/workflows/contrib.yml | 28 ++++++++++++++++++----------
 1 file changed, 18 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/contrib.yml b/.github/workflows/contrib.yml
index 2e755034a..568036ce0 100644
--- a/.github/workflows/contrib.yml
+++ b/.github/workflows/contrib.yml
@@ -7,16 +7,24 @@ permissions:
   contents: read
 
 jobs:
-  build:
+  compile:
+    name: ${{ matrix.name }}
     runs-on: ubuntu-slim
+    strategy:
+      matrix:
+        include:
+        - name: dev/flags/
+          targets:
+          - dev/flags/flags
+        - name: dev/hpack/
+          targets:
+          - dev/hpack/decode
+          - dev/hpack/gen-enc
+          - dev/hpack/gen-rht
+        - name: dev/poll/
+          targets:
+          - dev/poll/poll
+      fail-fast: false
     steps:
     - uses: actions/checkout@v6
-    - name: Compile dev/flags/flags
-      run: |
-        make dev/flags/flags
-    - name: Compile dev/poll/poll
-      run: |
-        make dev/poll/poll
-    - name: Compile dev/hpack
-      run: |
-        make dev/hpack/decode dev/hpack/gen-enc dev/hpack/gen-rht
+    - run: make ${{ join(matrix.targets, ' ') }}
-- 
2.53.0



Reply via email to