File tree Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Expand file tree Collapse file tree 2 files changed +31
-39
lines changed Original file line number Diff line number Diff line change 16
16
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
17
17
jobs :
18
18
build :
19
+ name : build
19
20
# The type of runner that the job will run on
20
21
runs-on : ubuntu-latest
21
- container :
22
- image : coqorg/coq:dev
23
- env :
24
- OPAMROOT : " /home/coq/.opam"
25
-
26
- steps :
27
- - name : cpu-cores
28
- uses : SimenB/github-actions-cpu-cores@v1
22
+ strategy :
23
+ matrix :
24
+ # Browse URL: https://github.com/coq-community/docker-coq/wiki#supported-tags
25
+ # to get the list of supported (coq, ocaml) versions in coqorg/coq.
26
+ coq_version :
27
+ # - '8.15'
28
+ - ' dev'
29
+ ocaml_version :
30
+ - ' 4.12.1-flambda'
31
+ # at most 20 concurrent jobs per free account:
32
+ # https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#usage-limits
33
+ max-parallel : 4
34
+ # don't cancel all in-progress jobs if one matrix job fails:
35
+ fail-fast : false
29
36
30
-
31
- - name : unicoq
32
- run : |
33
- set -ex
34
- eval $(opam env)
35
- export OPAMJOBS=2
36
- opam config list
37
- opam repo list
38
- opam list
39
- opam update default
40
- coqc --version
41
- opam pin add https://github.com/unicoq/unicoq.git#master -k git -y
42
- opam pin
43
- opam list
44
-
45
- # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
46
- - name : checkout
47
- uses : actions/checkout@v3
48
-
49
- - name : Build Mtac2
50
- run : |
51
- set -ex
52
- eval $(opam env)
53
- export OPAMJOBS=2
54
- cd "$GITHUB_WORKSPACE"
55
- eval $(opam env)
56
- ./configure.sh
57
- make
58
- make test
37
+ # Steps represent a sequence of tasks that will be executed as part of the job.
38
+ steps :
39
+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it.
40
+ - uses : actions/checkout@v2
41
+ - uses : coq-community/docker-coq-action@v1
42
+ # See https://github.com/coq-community/docker-coq-action#readme
43
+ # for details on docker-coq-action's syntax and provided features.
44
+ with :
45
+ opam_file : ' opam'
46
+ coq_version : ${{ matrix.coq_version }}
47
+ ocaml_version : ${{ matrix.ocaml_version }}
48
+ export : ' OPAMWITHTEST'
49
+ env :
50
+ OPAMWITHTEST : ' true'
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ install: [
14
14
]
15
15
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Mtac2"]
16
16
depends: [
17
- "coq" {>= "8.7.0" & < "8.9~ "}
18
- "coq-unicoq" {>= "1.3~" & < "2~ "}
17
+ "coq" {>= "dev "}
18
+ "coq-unicoq" {>= "dev "}
19
19
]
You can’t perform that action at this time.
0 commit comments