Add project files.
This commit is contained in:
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
name: hax
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
fstar-type-checking:
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: ⤵ Install and configure hax
|
||||
uses: hacspec/hax-actions@main
|
||||
with:
|
||||
fstar: v2025.10.06
|
||||
hax_reference: hax-lib-v0.3.6
|
||||
|
||||
- run: sudo apt-get install protobuf-compiler
|
||||
|
||||
- name: 🏃 Extract F*
|
||||
run: |
|
||||
rm -f proofs/fstar/extraction/*.fst*
|
||||
./hax.py extract
|
||||
- name: 🏃 Type-check extracted F*
|
||||
run: ./hax.py prove
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
name: proverif
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
proofs:
|
||||
runs-on: "ubuntu-latest"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- run: sudo apt-get update && sudo apt-get install -y opam libgtk2.0-dev
|
||||
- run: opam init
|
||||
- run: opam install -y proverif
|
||||
|
||||
- name: proverif proofs
|
||||
run: |
|
||||
eval $(opam env)
|
||||
proverif -lib cryptolib.pvl spqr-cka.pv
|
||||
proverif -lib cryptolib.pvl spqr-dr.pv
|
||||
working-directory: ./proofs/proverif
|
||||
Vendored
+64
@@ -0,0 +1,64 @@
|
||||
name: CI
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: cargo test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
components: clippy
|
||||
- run: sudo apt-get install protobuf-compiler
|
||||
- run: ./check_copyrights.sh
|
||||
- run: cargo test --all-features
|
||||
- run: cargo clippy --workspace --all-targets --all-features --keep-going -- -D warnings
|
||||
msrv:
|
||||
name: MSRV
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: 1.83.0
|
||||
components: clippy
|
||||
- run: sudo apt-get install protobuf-compiler
|
||||
- run: cargo +1.83.0 build
|
||||
crosspoly_i586:
|
||||
name: cross test polynomial i586
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
- run: wget https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: tar xvzf cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: chmod u+x cross
|
||||
- run: ./cross test --target i586-unknown-linux-gnu polynomial
|
||||
crosspoly_i686:
|
||||
name: cross test polynomial i686
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
- run: wget https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: tar xvzf cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: chmod u+x cross
|
||||
- run: ./cross test --target i686-unknown-linux-gnu polynomial
|
||||
crosspoly_aarch64:
|
||||
name: cross test polynomial aarch64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
with:
|
||||
toolchain: nightly
|
||||
- run: wget https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: tar xvzf cross-x86_64-unknown-linux-gnu.tar.gz
|
||||
- run: chmod u+x cross
|
||||
- run: ./cross test --target aarch64-unknown-linux-gnu polynomial
|
||||
Reference in New Issue
Block a user