Skip to content

Commit df15579

Browse files
committed
new CI
1 parent 47abf88 commit df15579

File tree

2 files changed

+54
-18
lines changed

2 files changed

+54
-18
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,53 @@
1-
name: Main workflow
1+
name: coq-library-undecidability CI
22

33
on:
4-
pull_request:
54
push:
6-
7-
permissions: read-all
5+
pull_request:
6+
types: [opened, synchronize, reopened, ready_for_review]
87

98
jobs:
109
build:
10+
runs-on: ubuntu-latest
11+
1112
strategy:
1213
matrix:
13-
os:
14-
- ubuntu-latest
15-
ocaml-compiler:
16-
- "4.14"
17-
18-
runs-on: ${{ matrix.os }}
14+
coq_version:
15+
- '9.0'
16+
ocaml_version:
17+
- '4.14-flambda'
18+
fail-fast: true
1919

2020
steps:
21-
- name: Checkout tree
22-
uses: actions/checkout@v3
2321

24-
- name: Set-up OCaml ${{ matrix.ocaml-compiler }}
25-
uses: ocaml/setup-ocaml@v3
22+
- name: Checkout code
23+
uses: actions/checkout@v2
2624
with:
27-
ocaml-compiler: ${{ matrix.ocaml-compiler }}
25+
fetch-depth: 1
2826

29-
- run: opam repo add coq-released https://coq.inria.fr/opam/released
30-
- run: opam install rocq-equations.1.3.1+9.0 coq-stdpp
31-
- run: cd theories && opam exec -- make
27+
- name: Docker-Coq-Action
28+
uses: rocq-community/docker-coq-action@v1
29+
with:
30+
coq_version: ${{ matrix.coq_version }}
31+
ocaml_version: ${{ matrix.ocaml_version }}
32+
before_script: |
33+
startGroup "Workaround permission issue"
34+
sudo chown -R 1000:1000 . # <--
35+
opam exec -- ocamlfind list
36+
opam install rocq-equations coq-stdpp
37+
endGroup
38+
before_install: |
39+
startGroup "Print opam config"
40+
sudo chown -R 1000:1000 .
41+
opam config list; opam repo list; opam list
42+
endGroup
43+
uninstall: |
44+
startGroup "Clean project"
45+
endGroup
46+
47+
- name: Revert permissions
48+
# to avoid a warning at cleanup time
49+
if: ${{ always() }}
50+
run: sudo chown -R 1001:116 . # <--
3251

3352
# name: Test compilation
3453

opam

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
opam-version: "2.0"
2+
version: "dev"
3+
maintainer: "[email protected]"
4+
5+
license: "MPL-2.0"
6+
build: [
7+
[make "-j%{jobs}%"]
8+
]
9+
install: [
10+
[make "install"]
11+
]
12+
depends: [
13+
"rocq-prover" { >= "9.0~" & != "9.0.dev" & < "10" }
14+
"rocq-equations"
15+
"coq-stdpp"
16+
]
17+

0 commit comments

Comments
 (0)