Skip to content

Commit 4fd241f

Browse files
committed
update CI script
1 parent 2ed1c12 commit 4fd241f

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/main.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,41 @@ on:
44
push:
55
workflow_dispatch:
66
jobs:
7-
build:
7+
lambdapi:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
lambdapi-version: [master]
11+
lambdapi-version: [2.0.0, 2.1.0, 2.2.0]
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Check out lib
14+
- name: Check out library
1515
uses: actions/checkout@v2
1616
- name: Install ocaml and opam
1717
uses: ocaml/setup-ocaml@v2
18-
- name: Install lambdapi dependencies
19-
run: opam install dune bindlib timed sedlex menhir pratter yojson cmdliner why3
20-
- name: Check out lambdapi ${{ matrix.lambdapi-version }}
21-
run: git clone --depth 1 --branch ${{ matrix.lambdapi-version }} https://github.com/Deducteam/lambdapi.git
22-
- name: Install lambdapi
18+
with:
19+
ocaml-compiler: 4.13.1
20+
- name: Install lambdapi ${{ matrix.lambdapi-version }}
21+
run: opam install lambdapi.${{ matrix.lambdapi-version }}
22+
- name: Check library
2323
run: |
24-
cd lambdapi
2524
eval $(opam env)
26-
make install
27-
- name: Check lib
25+
make
26+
lambdapi-master:
27+
strategy:
28+
fail-fast: false
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Check out library
32+
uses: actions/checkout@v2
33+
- name: Install ocaml and opam
34+
uses: ocaml/setup-ocaml@v2
35+
with:
36+
ocaml-compiler: 4.13.1
37+
- name: Install lambdapi
38+
run: |
39+
opam pin add lambdapi https://github.com/Deducteam/lambdapi.git
40+
opam install lambdapi
41+
- name: Check library
2842
run: |
2943
eval $(opam env)
3044
make

0 commit comments

Comments
 (0)