-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
79 additions
and
25 deletions.
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,19 @@ | ||
name: "Check memory safety" | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
check_safety: | ||
name: check_safety | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v25 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: DeterminateSystems/magic-nix-cache-action@v3 | ||
- run: nix-shell --arg full false --run "echo Dependencies OK…" | ||
- run: nix-shell --arg full false --run "jasminc -slice ml_dsa_65_keygen -checksafety ml_dsa_65/ref/ml_dsa.jazz" |
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,20 @@ | ||
name: "Tests" | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
tests: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: cachix/install-nix-action@v25 | ||
with: | ||
nix_path: nixpkgs=channel:nixos-unstable | ||
- uses: DeterminateSystems/magic-nix-cache-action@v3 | ||
- run: nix-shell --run "echo Dependencies OK…" | ||
- run: nix-shell --run "make test" | ||
- run: nix-shell --run "make large-kat-test" |
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
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
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,15 @@ | ||
{ pkgs ? | ||
import (fetchTarball { | ||
url = "https://github.com/NixOS/nixpkgs/archive/f1981c55d129fd71d0e24f3898eb6ff4757d76c1.tar.gz"; | ||
sha256 = "sha256:12ds5dsipqcqnz9ydbg5ppwrldrbxdffskixp4ysdjbpac3r22ck"; | ||
}) {} | ||
, full ? true | ||
}: | ||
|
||
with pkgs; | ||
|
||
mkShell ({ | ||
JASMINC = "${jasmin-compiler.bin}/bin/jasminc"; | ||
JASMIN_CT = "${jasmin-compiler.bin}/bin/jazzct"; | ||
} // lib.optionalAttrs full { | ||
}) |
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
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