From b4e11262a6a84b6831315966eca21f38cf20f836 Mon Sep 17 00:00:00 2001 From: "Thing-han, Lim" <15379156+potsrevennil@users.noreply.github.com> Date: Wed, 19 Jun 2024 16:00:26 +0800 Subject: [PATCH] run benchmark in bench workflow Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com> --- .github/workflows/bench.yml | 22 ++-------------------- .github/workflows/ci.yml | 3 +-- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index e455f0f73..ad6f78e40 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -27,25 +27,7 @@ jobs: - $(${{ matrix.cross_prefix }}gcc --version | grep -m1 "") - $(bash --version | grep -m1 "") EOF - - name: Run functional tests - id: func_test + - name: Run benchmark shell: nix develop .#ci -c bash -e {0} run: | - tests func -v - - name: Run KAT tests - id: kat_test - if: | - success() - || steps.func_test.conclusion == 'failure' - shell: nix develop .#ci -c bash -e {0} - run: | - tests kat -v - - name: Run Nistkat tests - id: nistkat_test - if: | - success() - || steps.func_test.conclusion == 'failure' - || steps.kat_test.conclusion == 'failure' - shell: nix develop .#ci -c bash -e {0} - run: | - tests nistkat -v + tests bench -v diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6465b0355..1d9bbc756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,8 +13,7 @@ jobs: matrix: system: [ macos-latest, pqcp-arm64, ubuntu-latest ] exclude: - - system: ${{ github.event_name != 'pull_request' && 'pqcp-arm64' }} - - system: ${{ (github.ref != 'refs/heads/main' || github.repository_owner != 'pq-code-package') && 'pqcp-arm64' }} + - system: ${{ github.repository_owner != 'pq-code-package' && 'pqcp-arm64' }} name: build_kat (${{ matrix.system }}) runs-on: ${{ matrix.system }} env: