File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Nightly
2+ on :
3+ schedule :
4+ - cron : ' 0 2 * * *'
5+ workflow_dispatch :
6+
7+ jobs :
8+ nightly :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+
13+ - uses : ocaml/setup-ocaml@v3
14+ with :
15+ ocaml-compiler : 5.3.0
16+ opam-pin : false
17+
18+ - name : Clone Creusot source
19+ run : |
20+ cd ..
21+ git clone https://github.com/creusot-rs/creusot --depth 1
22+
23+ - name : Cache Creusot build
24+ uses : actions/cache@v4
25+ with :
26+ path : |
27+ ~/.cargo/registry
28+ ~/.cargo/git
29+ creusot/target
30+ ~/.local/share/creusot
31+ key : ${{ runner.os }}-nightly
32+
33+ - name : System dependencies
34+ run : |
35+ sudo apt update && sudo apt install opam libzmq3-dev
36+ opam init --bare
37+ opam --cli=2.1 var --global in-creusot-ci=true
38+
39+ - name : Install Creusot
40+ run : |
41+ cd ../creusot
42+ ./INSTALL
43+
44+ - name : Write .cargo/config.toml
45+ run : echo -e '[patch.crates-io]\ncreusot-std = { path = "../creusot/creusot-std" }' > .cargo/config.toml
46+
47+ - name : Run Creusot
48+ run : cargo creusot prove -- -F"solutions nightly"
You can’t perform that action at this time.
0 commit comments