Skip to content

Commit c02f55f

Browse files
Add CI (#1)
* Add CI
1 parent 6013669 commit c02f55f

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Coq CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-22.04
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up OCaml and OPAM
16+
uses: ocaml/setup-ocaml@v2
17+
with:
18+
ocaml-compiler: 4.14.0
19+
20+
- name: Prepare OPAM and install dependencies
21+
run: |
22+
opam switch create vlsm-ci 4.14.0
23+
eval $(opam env)
24+
25+
opam repo add coq-released https://coq.inria.fr/opam/released
26+
opam update
27+
28+
opam install -y \
29+
coq.8.18.0 \
30+
coq-stdpp.1.9.0 \
31+
coq-itauto \
32+
coq-equations \
33+
coq-vlsm.1.3
34+
35+
- name: Build Coq project
36+
run: |
37+
eval $(opam env)
38+
make
39+
working-directory: ${{ github.workspace }}

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ HASNATDYNLINK := $(COQMF_HASNATDYNLINK)
4545
OCAMLWARN := $(COQMF_WARN)
4646

4747
Makefile.conf: _CoqProject
48-
coq_makefile -f _CoqProject Sequents.v SequentsVLSM.v -o Makefile
48+
coq_makefile -f _CoqProject src/Sequents.v src/SequentsVLSM.v -o Makefile
4949

5050
# This file can be created by the user to hook into double colon rules or
5151
# add any other Makefile code he may need

_CoqProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
-Q . VLSM_SC
1+
-Q src VLSM_SC
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)