Skip to content

Commit

Permalink
Merge pull request #228 from Nadrieril/kyber-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadrieril authored Jun 5, 2024
2 parents 438acf2 + 39a08b6 commit 5ff8e7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
uses: actions/checkout@v4
with:
repository: cryspen/libcrux
ref: dev
# Kyber expects Eurydice's sources in `$EURYDICE_HOME`,
# not the install directory.
- name: checkout eurydice
Expand All @@ -83,4 +84,6 @@ jobs:
echo FSTAR_HOME=$(pwd)/fstar >> $GITHUB_ENV
echo KRML_HOME=$(pwd)/karamel >> $GITHUB_ENV
- name: build kyber
run: nix develop github:aeneasverif/charon/${{ github.sha }} --command bash kyber-crate.sh
run: |
cd libcrux-ml-kem
nix develop 'github:aeneasverif/charon/${{ github.sha }}#kyber-ci' --command ./c.sh
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,13 @@
self.packages.${system}.charon-ml
];
};
# The dev-shell we need to run kyber in CI. This doesn't really belong here but it's easier here.
devShells.kyber-ci = pkgs.mkShell {
packages = [
rustToolchain
pkgs.clang-tools # For clang-format
];
};
checks = { inherit charon-ml-tests charon-check-fmt charon-ml-check-fmt; };

# Export this function so that users of charon can use it in nix. This
Expand Down

0 comments on commit 5ff8e7a

Please sign in to comment.