From f2f5c9d8481ba8e2d5b25e546a29a489ce6466ac Mon Sep 17 00:00:00 2001 From: DNKpp Date: Sun, 8 Oct 2023 01:24:57 +0200 Subject: [PATCH] fix: benchmark workflow --- .github/workflows/run_benchmarks.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run_benchmarks.yml b/.github/workflows/run_benchmarks.yml index 69d7e4a7..6bdff3ce 100644 --- a/.github/workflows/run_benchmarks.yml +++ b/.github/workflows/run_benchmarks.yml @@ -3,7 +3,7 @@ name: run benchmarks env: BUILD_DIR: out # root build directory BENCHMARK_DIR: benchmarks # relative directory below BUILD_DIR - ARTIFACTS_DIR: benchmarks/artifacts # relative directory below BUILD_DIR + ARTIFACTS_DIR: artifacts # relative directory below BUILD_DIR on: push: @@ -95,12 +95,12 @@ jobs: env: CXX: ${{ matrix.compiler.exe }} run: | - cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -B ${{ env.BUILD_DIR }} -S . + cmake -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSIMPLE_UTILITY_BUILD_BENCHMARKS=Yes -B ${{ env.BUILD_DIR }} -S . cmake --build ${{ env.BUILD_DIR }} -j4 - name: Run benchmarks env: CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C ${{ matrix.build_mode }} -j4 + run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.BENCHMARK_DIR }} -C ${{ matrix.build_mode }} -j4 - name: Upload generated report artifacts uses: actions/upload-artifact@v3 with: @@ -120,12 +120,12 @@ jobs: - uses: actions/checkout@v3 - name: Compile run: | - cmake -G"Visual Studio 17 2022" -T${{ matrix.toolset }} -B${{ env.BUILD_DIR }} -Ax64 -S . + cmake -G"Visual Studio 17 2022" -T${{ matrix.toolset }} -DSIMPLE_UTILITY_BUILD_BENCHMARKS=Yes -B${{ env.BUILD_DIR }} -Ax64 -S . cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build_mode }} -j4 - name: Run benchmarks env: CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C${{ matrix.build_mode }} -j4 + run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.BENCHMARK_DIR }} -C${{ matrix.build_mode }} -j4 - name: Upload generated report artifacts uses: actions/upload-artifact@v3 with: @@ -145,12 +145,12 @@ jobs: - uses: actions/checkout@v3 - name: Compile run: | - cmake -G"Visual Studio 16 2019" -T${{ matrix.toolset }} -B${{ env.BUILD_DIR }} -Ax64 -S . + cmake -G"Visual Studio 16 2019" -T${{ matrix.toolset }} -DSIMPLE_UTILITY_BUILD_BENCHMARKS=Yes -B${{ env.BUILD_DIR }} -Ax64 -S . cmake --build ${{ env.BUILD_DIR }} --config ${{ matrix.build_mode }} -j4 - name: Run benchmarks env: CTEST_OUTPUT_ON_FAILURE: 1 - run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.TEST_DIR }} -C${{ matrix.build_mode }} -j4 + run: ctest --test-dir ${{ env.BUILD_DIR }}/${{ env.BENCHMARK_DIR }} -C${{ matrix.build_mode }} -j4 - name: Upload generated report artifacts uses: actions/upload-artifact@v3 with: