-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.56 KB
/
deploy.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Thanks Yasu
name: Build and all tests
on:
push:
branches:
- master
pull_request:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Setup OCaml 4.12.0
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.12.0
opam-depext: false
- name: Cache
id: cache-opam
uses: actions/cache@v3
env:
cache-name: cache-opam
with:
path: |
/home/runner/work/proof-repair/proof-repair/_opam/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.opam') }}
- name: Opam & Coq
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
opam repository add default https://github.com/ocaml/opam-repository.git --all-switches --set-default
opam repository add coq-released https://coq.inria.fr/opam/released --all-switches --set-default
- name: Install Dune
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
opam install dune
- name: Install
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
opam install . --deps-only
- name: Build
run: |
opam exec -- dune build
- name: Run unit tests
run: |
opam exec -- dune runtest ./tests
- name: Run integration tests
run: |
opam exec -- dune runtest ./benchmarks
env:
SIS_DISABLE_Z3: 1