Skip to content

Commit 4e2e9c9

Browse files
committed
[WIP] cargo-checkct
Wrapper for BINSEC providing Rust drivers and a way to write tests for constant-time operation: https://github.com/Ledger-Donjon/cargo-checkct This PR adds a GitHub workflow which runs `cargo-checkct` on every `push` event
1 parent 2734f18 commit 4e2e9c9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/cargo-checkct.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: cargo-checkct
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- .github/workflows/cargo-checkct.yml
7+
push:
8+
branches:
9+
- master
10+
paths-ignore:
11+
- README.md
12+
13+
env:
14+
BINSEC_VERSION: 0.10.0
15+
16+
jobs:
17+
checkct:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: dtolnay/rust-toolchain@master
22+
with:
23+
toolchain: stable
24+
- run: sudo apt install opam z3
25+
- run: opam init
26+
- run: opam install -y dune dune-site menhir grain_dypgen ocamlgraph zarith toml
27+
- run: opam install -y z3 bitwuzla #bitwuzla-cxx
28+
- run: opam install -y unisim_archisec
29+
- run: wget https://github.com/binsec/binsec/releases/download/${BINSEC_VERSION}/binsec-${BINSEC_VERSION}.tbz
30+
- run: tar -jxvf binsec-${BINSEC_VERSION}.tbz
31+
- run: cd binsec-${BINSEC_VERSION} && make switch && make && make install

0 commit comments

Comments
 (0)