Skip to content

Commit 20eb1c9

Browse files
committed
feat: Test build matrix
1 parent b41496f commit 20eb1c9

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ name: CI
44

55
# Controls when the action will run.
66
# cf. https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#filtering-for-specific-branches-tags-and-paths
7-
# Triggers the workflow on push events or pull request events for the
7+
# Triggers the workflow on all push events or pull request events for the
88
# master branch only:
99
on:
1010
push:
1111
branches:
12-
- master
12+
- '**'
1313
pull_request:
1414
branches:
1515
- master
@@ -22,17 +22,25 @@ 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', '4.09-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
2836
- uses: actions/checkout@v2
2937

30-
- uses: erikmd/docker-coq-action@alpha
38+
- uses: erikmd/docker-coq-action@simplify-entrypoint
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
@@ -42,6 +50,8 @@ jobs:
4250
opam update -y
4351
endGroup
4452
startGroup Build
53+
variable=OK
54+
echo "$variable"
4555
opam install -y -v -j 2 $PACKAGE
4656
opam list
4757
endGroup

0 commit comments

Comments
 (0)