Skip to content

Commit

Permalink
build gc before trying to bench it
Browse files Browse the repository at this point in the history
  • Loading branch information
keks committed Aug 26, 2024
1 parent 9ddfa5e commit 190bfd4
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/c-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,34 @@ jobs:
defaults:
run:
shell: bash
working-directory: libcrux-ml-kem/c

steps:
- uses: actions/checkout@v4

- name: πŸ”¨ Build Release
- name: πŸ”¨ Build libcrux-ml-kem/c
working-directory: libcrux-ml-kem/c
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
# FIXME: Benchmarks on Windows CI are not working right now.
# - name: πŸƒπŸ»β€β™€οΈ Benchmark
# working-directory: libcrux-ml-kem/c
# run: ./build/Release/ml_kem_bench
# if: ${{ matrix.os == 'windows-latest' }}

- name: πŸƒπŸ»β€β™€οΈ Benchmark (c)
- name: πŸƒπŸ»β€β™€οΈ Benchmark (libcrux-ml-kem/c)
working-directory: libcrux-ml-kem/c
run: ./build/ml_kem_bench
if: ${{ matrix.os != 'windows-latest' && (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') }}

- name: πŸƒπŸ»β€β™€οΈ Benchmark (cg)
- name: πŸ”¨ Build libcrux-ml-kem/cg
working-directory: libcrux-ml-kem/cg
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name: πŸƒπŸ»β€β™€οΈ Benchmark libcrux-ml-kem/cg
working-directory: libcrux-ml-kem/cg
run: ./build/ml_kem_bench
if: ${{ matrix.os != 'windows-latest' && (github.event_name == 'merge_group' || github.event_name == 'workflow_dispatch') }}

0 comments on commit 190bfd4

Please sign in to comment.