-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hax extraction and run hax on CI for Kyber reference implementati…
…on . (#83)
- Loading branch information
1 parent
97fe462
commit 704d8d9
Showing
2 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: hax | ||
|
||
on: | ||
push: | ||
branches: ["dev"] | ||
pull_request: | ||
branches: ["dev"] | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
hax: | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 🔨 OCaml Setup | ||
uses: ocaml/setup-ocaml@v2 | ||
with: | ||
ocaml-compiler: 4.14.1 | ||
|
||
- name: ⤵ Clone hax repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: hacspec/hacspec-v2 | ||
path: hax | ||
|
||
- name: 🔨 Setup hax | ||
working-directory: hax | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install --yes nodejs | ||
./setup.sh | ||
- name: 🏃🏻♀️ Run hax | ||
run: | | ||
eval $(opam env) | ||
cargo hax into -i '-** +kem::kyber768::** -kem::kyber768::arithmetic::mutable_operations::**' fstar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters