Skip to content

Commit 59c0518

Browse files
committed
ci: Add nightly job
1 parent 2a6f2ca commit 59c0518

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/nightly.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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"

0 commit comments

Comments
 (0)