-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 849 Bytes
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build master
on:
push:
branches:
- 'master'
jobs:
build:
env:
OPAMROOT: /home/user/.opam
OPAMYES: true
runs-on: ubuntu-22.04
container:
image: kakadu18/ocaml:pltlab
options: --user user
steps:
- run: opam --version
- run: opam exec -- ocamlopt --version
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout code
uses: actions/checkout@v3
- run: opam pin . --yes --no-action
- run: opam pin add https://github.com/PLTools/OCanren.git --yes
- run: opam install OCanren-base-example --yes --deps-only --with-test
- run: opam exec -- dune build
- run: opam exec -- dune runtest
- run: opam exec -- make -C demo3make