Skip to content

Commit 0ba13a8

Browse files
JannoJan-Oliver Kaiser
authored andcommitted
Use coq community action.
1 parent 67cc7ea commit 0ba13a8

File tree

2 files changed

+31
-39
lines changed

2 files changed

+31
-39
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,35 @@ on:
1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
1818
build:
19+
name: build
1920
# The type of runner that the job will run on
2021
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
2936

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'

opam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ install: [
1414
]
1515
remove: ["rm" "-R" "%{lib}%/coq/user-contrib/Mtac2"]
1616
depends: [
17-
"coq" {>= "8.7.0" & < "8.9~"}
18-
"coq-unicoq" {>= "1.3~" & < "2~"}
17+
"coq" {>= "dev"}
18+
"coq-unicoq" {>= "dev"}
1919
]

0 commit comments

Comments
 (0)