]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: Use `matrix:` in contrib.yml
authorTim Duesterhus <tim@bastelstu.be>
Mon, 13 Apr 2026 19:23:45 +0000 (21:23 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Tue, 14 Apr 2026 09:16:17 +0000 (11:16 +0200)
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

index 2e755034aa426b529574062369eb4c8407c916b2..568036ce0e80c6e1210f860f712272a7b5574902 100644 (file)
@@ -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, ' ') }}