Skip to content

Commit

Permalink
fix: benchmark workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Oct 7, 2023
1 parent 1e60a7e commit f2f5c9d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/run_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit f2f5c9d

Please sign in to comment.