forked from uds-psl/coq-library-complexity
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (32 loc) · 1008 Bytes
/
build.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
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Get submodule hash
id: submodule-hash-undec
run: |
echo "UNDEC_HASH=$(git ls-tree --abbrev performence-optimisation coq-library-undecidability | awk '{print $3}')" >> $GITHUB_ENV
echo $UNDEC_HASH
- name: Try to restore build cache
id: opam-cache
uses: actions/cache@v2
with:
path: |
~/.opam
~/bin
key: ${{ runner.os }}-${{ hashFiles('opam') }}-${{ env.UNDEC_HASH }}
restore-keys : |
${{ runner.os }}-${{ hashFiles('opam') }}-
${{ runner.os }}-
- name: Install OCaml
uses: avsm/setup-ocaml@v1
with:
ocaml-version: 4.07.1
- run: make depsopam -j2
- run: opam exec -- make all -j2 TIMED=1