Skip to content

Commit da3b674

Browse files
authored
Merge pull request #3 from erikmd/test-matrix
Test build matrix
2 parents b41496f + 9ab2e77 commit da3b674

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build-coq-demo.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ jobs:
2222
# the OS must be GNU/Linux to be able to use the docker-coq-action
2323
runs-on: ubuntu-latest
2424

25+
strategy:
26+
matrix:
27+
coq_version: ['8.11', 'dev']
28+
ocaml_version: ['4.07-flambda']
29+
# at most 20 concurrent jobs per free account
30+
# cf. https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#usage-limits
31+
max-parallel: 4
32+
2533
# Steps represent a sequence of tasks that will be executed as part of the job
2634
steps:
2735
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -31,8 +39,8 @@ jobs:
3139
id: docker-coq-action
3240
with:
3341
opam_file: 'coq-demo.opam'
34-
coq_version: '8.11'
35-
ocaml_version: '4.07-flambda'
42+
coq_version: ${{ matrix.coq_version }}
43+
ocaml_version: ${{ matrix.ocaml_version }}
3644
custom_script: |
3745
startGroup Print opam config
3846
opam config list; opam repo list; opam list

0 commit comments

Comments
 (0)