1+ # This is a basic workflow to help you get started with Actions
2+
3+ name : CI Computability
4+
5+ # Controls when the action will run.
6+ on :
7+ # Triggers the workflow on push or pull request events but only for the master branch
8+ push :
9+ branches : [ master ]
10+ pull_request :
11+ branches : [ master ]
12+ schedule :
13+ # Run this workflow at 02:15 UTC every Tuesday to keep the cache from being
14+ # evicted. A typical run with everything cached should take less than 10
15+ # minutes.
16+ - cron : 15 2 * * TUE
17+
18+ # Allows you to run this workflow manually from the Actions tab
19+ workflow_dispatch :
20+
21+ env :
22+ # Set this to the version of Coq that should be used.
23+ coq-version : 8.16.0
24+ dune-version : 3.16.1
25+ DUNE_CACHE_STORAGE_MODE : copy
26+
27+ jobs :
28+ build :
29+ name : Build Computability
30+ runs-on : ubuntu-22.04
31+
32+ steps :
33+ # Checkout UniMath into the working directory
34+ - name : Checkout UniMath.
35+ uses : actions/checkout@v3
36+ with :
37+ repository : UniMath/UniMath
38+ clean : false
39+ path : .
40+
41+ # Checkout the current branch into SetHITs/
42+ - name : Checkout Computability.
43+ uses : actions/checkout@v3
44+ with :
45+ path : Computability
46+
47+ # Ideally we would use docker-coq. A setup currently takes about 7min
48+ # before it starts compiling, with OCaml cached.
49+ - name : Install OCaml.
50+ uses : ocaml/setup-ocaml@v2
51+ with :
52+ ocaml-compiler : ocaml-variants.4.14.0+options,ocaml-option-flambda
53+ dune-cache : true
54+ opam-disable-sandboxing : true
55+
56+ - name : Install Dune
57+ run : opam pin add dune ${{ env.dune-version }}
58+ - name : Install Coq
59+ run : opam pin add coq ${{ env.coq-version }}
60+
61+ # SetHITs is built using the flags specified in code/dune.
62+ - name : Compile Computability.
63+ run : opam exec -- dune build Computability --display=short --error-reporting=twice
0 commit comments