Skip to content

Commit a041f90

Browse files
committed
ci: Switch to Github Actions
1 parent cf1443c commit a041f90

File tree

4 files changed

+105
-94
lines changed

4 files changed

+105
-94
lines changed

.circleci/config.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build with Make
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- '**'
10+
11+
jobs:
12+
build-with-make:
13+
# the OS must be GNU/Linux to be able to use the docker-coq-action
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
image:
18+
- 'coqorg/coq:8.20'
19+
fail-fast: false
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: coq-community/docker-coq-action@v1
23+
with:
24+
opam_file: 'coq-itree.opam'
25+
custom_image: ${{ matrix.image }}
26+
before_script: |
27+
startGroup "Workaround permission issue"
28+
sudo chown -R 1000:1000 .
29+
endGroup
30+
script: |
31+
startGroup "Build"
32+
make all
33+
make install
34+
endGroup
35+
after_script: |
36+
startGroup "Clean"
37+
make clean
38+
endGroup
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# This file was generated from `meta.yml`, please do not edit manually.
2+
# Follow the instructions on https://github.com/coq-community/templates to regenerate.
3+
name: Docker CI
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- '**'
12+
13+
jobs:
14+
build:
15+
# the OS must be GNU/Linux to be able to use the docker-coq-action
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
image:
20+
- 'coqorg/coq:8.14'
21+
- 'coqorg/coq:8.15'
22+
- 'coqorg/coq:8.16'
23+
- 'coqorg/coq:8.17'
24+
- 'coqorg/coq:8.18'
25+
- 'coqorg/coq:8.19'
26+
- 'coqorg/coq:8.20'
27+
- 'rocq/rocq-prover:9.0'
28+
- 'rocq/rocq-prover:dev'
29+
fail-fast: false
30+
steps:
31+
- uses: actions/checkout@v4
32+
- uses: coq-community/docker-coq-action@v1
33+
with:
34+
opam_file: 'coq-itree.opam'
35+
custom_image: ${{ matrix.image }}
36+
after_script: |
37+
startGroup "Test dependants"
38+
PINS=$(opam list -s --pinned --columns=package | xargs | tr ' ' ,)
39+
PACKAGES=`opam list -s --depends-on coq-itree --coinstallable-with $PINS`
40+
for PACKAGE in $PACKAGES
41+
do DEPS_FAILED=false
42+
opam install -y --deps-only $PACKAGE || DEPS_FAILED=true
43+
[ $DEPS_FAILED == true ] || opam install -t $PACKAGE
44+
done
45+
endGroup
46+
47+
48+
# See also:
49+
# https://github.com/coq-community/docker-coq-action#readme
50+
# https://github.com/erikmd/docker-coq-github-action-demo

meta.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
fullname: Interaction Trees
2+
shortname: itree
3+
organization: DeepSpec
4+
action: true
5+
ci_test_dependants: true
6+
dune: true
7+
tested_coq_opam_versions:
8+
- version: '8.14'
9+
- version: '8.15'
10+
- version: '8.16'
11+
- version: '8.17'
12+
- version: '8.18'
13+
- version: '8.19'
14+
- version: '8.20'
15+
tested_rocq_opam_versions:
16+
- version: '9.0'
17+
- version: 'dev'

0 commit comments

Comments
 (0)