Skip to content

Commit dff1bc1

Browse files
committed
ci, refactor: Generalize use of matrix.configuration.env_vars
1 parent 4b644da commit dff1bc1

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ jobs:
130130
strategy:
131131
fail-fast: false
132132
matrix:
133+
configuration:
134+
- env_vars: {}
133135
cc:
134136
- 'i686-linux-gnu-gcc'
135137
- 'clang --target=i686-pc-linux-gnu -isystem /usr/i686-linux-gnu/include'
@@ -148,6 +150,7 @@ jobs:
148150
- *CHECKOUT
149151

150152
- name: CI script
153+
env: ${{ matrix.configuration.env_vars }}
151154
uses: ./.github/actions/run-in-docker-action
152155
with:
153156
dockerfile: ./ci/linux-debian.Dockerfile
@@ -159,6 +162,11 @@ jobs:
159162
runs-on: ubuntu-latest
160163
needs: docker_cache
161164

165+
strategy:
166+
matrix:
167+
configuration:
168+
- env_vars: {}
169+
162170
env:
163171
WRAPPER_CMD: 'qemu-s390x'
164172
SECP256K1_TEST_ITERS: 16
@@ -176,6 +184,7 @@ jobs:
176184
- *CHECKOUT
177185

178186
- name: CI script
187+
env: ${{ matrix.configuration.env_vars }}
179188
uses: ./.github/actions/run-in-docker-action
180189
with:
181190
dockerfile: ./ci/linux-debian.Dockerfile
@@ -238,6 +247,8 @@ jobs:
238247
strategy:
239248
fail-fast: false
240249
matrix:
250+
configuration:
251+
- env_vars: {}
241252
cc:
242253
- 'gcc'
243254
- 'clang'
@@ -248,6 +259,7 @@ jobs:
248259
- *CHECKOUT
249260

250261
- name: CI script
262+
env: ${{ matrix.configuration.env_vars }}
251263
uses: ./.github/actions/run-in-docker-action
252264
with:
253265
dockerfile: ./ci/linux-debian.Dockerfile
@@ -259,6 +271,11 @@ jobs:
259271
runs-on: ubuntu-latest
260272
needs: docker_cache
261273

274+
strategy:
275+
matrix:
276+
configuration:
277+
- env_vars: {}
278+
262279
env:
263280
WRAPPER_CMD: 'qemu-ppc64le'
264281
SECP256K1_TEST_ITERS: 16
@@ -276,21 +293,22 @@ jobs:
276293
- *CHECKOUT
277294

278295
- name: CI script
296+
env: ${{ matrix.configuration.env_vars }}
279297
uses: ./.github/actions/run-in-docker-action
280298
with:
281299
dockerfile: ./ci/linux-debian.Dockerfile
282300

283301
- *PRINT_LOGS
284302

285303
valgrind_debian:
286-
name: "Valgrind ${{ matrix.binary_arch }} (memcheck)"
287-
runs-on: ${{ matrix.runner }}
304+
name: "Valgrind ${{ matrix.configuration.binary_arch }} (memcheck)"
305+
runs-on: ${{ matrix.configuration.runner }}
288306
needs: docker_cache
289307

290308
strategy:
291309
fail-fast: false
292310
matrix:
293-
include:
311+
configuration:
294312
- runner: ubuntu-latest
295313
binary_arch: x64
296314
env_vars: { CC: 'clang', ASM: 'auto' }
@@ -327,7 +345,7 @@ jobs:
327345
- *CHECKOUT
328346

329347
- name: CI script
330-
env: ${{ matrix.env_vars }}
348+
env: ${{ matrix.configuration.env_vars }}
331349
uses: ./.github/actions/run-in-docker-action
332350
with:
333351
dockerfile: ./ci/linux-debian.Dockerfile
@@ -640,6 +658,11 @@ jobs:
640658
runs-on: ubuntu-latest
641659
needs: docker_cache
642660

661+
strategy:
662+
matrix:
663+
configuration:
664+
- env_vars: {}
665+
643666
env:
644667
CC: 'g++'
645668
CFLAGS: '-fpermissive -g'
@@ -656,6 +679,7 @@ jobs:
656679
- *CHECKOUT
657680

658681
- name: CI script
682+
env: ${{ matrix.configuration.env_vars }}
659683
uses: ./.github/actions/run-in-docker-action
660684
with:
661685
dockerfile: ./ci/linux-debian.Dockerfile

0 commit comments

Comments
 (0)