Skip to content

Commit 198e877

Browse files
committed
use docker-coq-action CI
1 parent 9d32950 commit 198e877

File tree

1 file changed

+16
-35
lines changed

1 file changed

+16
-35
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,29 @@
1-
name: CI
1+
name: Docker CI
22

33
on:
44
push:
55
branches:
6-
- v8.16
6+
- 'v8.17+0.8'
77
pull_request:
88
branches:
9-
- v8.16
10-
11-
# Allows you to run this workflow manually from the Actions tab
12-
workflow_dispatch:
9+
- '**'
1310

1411
jobs:
1512
build:
13+
# the OS must be GNU/Linux to be able to use the docker-coq-action
14+
runs-on: ubuntu-latest
1615
strategy:
17-
fail-fast: false
1816
matrix:
19-
ocaml-compiler: [4.09.x, 4.14.x]
20-
coq-version: [8.16+rc1]
21-
env:
22-
NJOBS: "2"
23-
OPAMJOBS: "2"
24-
OPAMROOTISOK: "true"
25-
OPAMYES: "true"
26-
runs-on: ubuntu-latest
27-
17+
image:
18+
- 'coqorg/coq:8.17'
19+
fail-fast: false
2820
steps:
29-
- uses: actions/checkout@v2
30-
- name: Set up OCaml ${{ matrix.ocaml-compiler }}
31-
uses: avsm/setup-ocaml@v2
21+
- uses: actions/checkout@v3
22+
- uses: coq-community/docker-coq-action@v1
3223
with:
33-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
34-
dune-cache: true
35-
- name: Install Coq
36-
run: |
37-
eval $(opam env)
38-
opam repos add coq-released http://coq.inria.fr/opam/released
39-
opam repos add coq-core-dev http://coq.inria.fr/opam/core-dev
40-
opam install coq.${{ matrix.coq-version }}
41-
- name: Display OPAM Setup
42-
run: |
43-
eval $(opam env)
44-
opam list
45-
- name: Test Template
46-
run: |
47-
eval $(opam env)
48-
dune build --display=short
24+
opam_file: 'coq-my-plugin.opam'
25+
custom_image: ${{ matrix.image }}
26+
before_install: |
27+
startGroup "Print opam config and unpin dune"
28+
opam config list; opam repo list; opam list; opam pin remove dune -y
29+
endGroup

0 commit comments

Comments
 (0)