-
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.
Merge branch 'jonas/kem-crate' into jonas/psq
- Loading branch information
Showing
284 changed files
with
50,540 additions
and
32,709 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,61 @@ | ||
name: Build & Test C | ||
|
||
on: | ||
push: | ||
branches: ["main", "dev"] | ||
pull_request: | ||
branches: ["main", "dev"] | ||
workflow_dispatch: | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: | ||
- macos-latest | ||
- ubuntu-latest | ||
- windows-latest | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: libcrux-ml-kem/c | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: 🔨 Build | ||
run: | | ||
cmake -B build | ||
cmake --build build | ||
- name: 🏃🏻♀️ Test | ||
run: ./build/Debug/ml_kem_test | ||
if: ${{ matrix.os == 'windows-latest' }} | ||
|
||
- name: 🏃🏻♀️ Test | ||
run: ./build/ml_kem_test | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
|
||
- name: 🔨 Build Release | ||
run: | | ||
rm -rf build | ||
cmake -B build -DCMAKE_BUILD_TYPE=Release | ||
cmake --build build --config Release | ||
# FIXME: Benchmarks on Windows CI are not working right now. | ||
# - name: 🏃🏻♀️ Benchmark | ||
# run: ./build/Release/ml_kem_bench | ||
# if: ${{ matrix.os == 'windows-latest' }} | ||
|
||
- name: 🏃🏻♀️ Benchmark | ||
run: ./build/ml_kem_bench | ||
if: ${{ matrix.os != 'windows-latest' }} | ||
|
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
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: Nix | ||
|
||
on: | ||
push: | ||
branches: [main, dev] | ||
pull_request: | ||
|
||
jobs: | ||
nix: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: DeterminateSystems/nix-installer-action@v12 | ||
- uses: DeterminateSystems/magic-nix-cache-action@v7 | ||
- name: Install & configure Cachix | ||
shell: bash | ||
run: | | ||
nix-env --quiet -j8 -iA cachix -f https://cachix.org/api/v1/install | ||
cachix use hax | ||
- uses: actions/checkout@v4 | ||
- run: nix build -L .#ml-kem |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
/target | ||
/Cargo.lock | ||
.vscode | ||
.DS_Store | ||
benches/boringssl/build | ||
|
Oops, something went wrong.