Skip to content

Commit

Permalink
Do not run benchmarks in Debug/Coverage builds in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhuighuy committed Jun 10, 2023
1 parent 3ad2578 commit a90906d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/analysis-sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ jobs:
- name: Run tests
run: |
./bin/StormRuler_UnitTests
./bin/StormRuler_Benchmarks
# ------------------------------------------------------------------------

Expand Down
28 changes: 26 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ jobs:
- name: Run tests
run: |
./bin/StormRuler_UnitTests
# ------------------------------------------------------------------------

- name: Run benchmarks
if: matrix.configuration == 'Release'
run: |
./bin/StormRuler_Benchmarks
# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -111,6 +117,12 @@ jobs:
- name: Run tests
run: |
./bin/StormRuler_UnitTests
# ------------------------------------------------------------------------

- name: Run benchmarks
if: matrix.configuration == 'Release'
run: |
./bin/StormRuler_Benchmarks
# ----------------------------------------------------------------------------
Expand Down Expand Up @@ -171,15 +183,27 @@ jobs:
shell: bash
run: |
./bin/${{ matrix.configuration }}/StormRuler_UnitTests.exe
./bin/${{ matrix.configuration }}/StormRuler_Benchmarks.exe
- name: Run tests (MinGW)
if: matrix.compiler == 'g++'
shell: msys2 {0}
run: |
./bin/${{ matrix.configuration }}/StormRuler_UnitTests.exe
./bin/${{ matrix.configuration }}/StormRuler_Benchmarks.exe
# ------------------------------------------------------------------------

- name: Run benchmarks (MSVC)
if: matrix.configuration == 'Release' && matrix.compiler == 'cl'
shell: bash
run: |
./bin/${{ matrix.configuration }}/StormRuler_UnitTests.exe
- name: Run benchmarks (MinGW)
if: matrix.configuration == 'Release' && matrix.compiler == 'g++'
shell: msys2 {0}
run: |
./bin/${{ matrix.configuration }}/StormRuler_UnitTests.exe
# ----------------------------------------------------------------------------

# ------------------------------------------------------------------------------

0 comments on commit a90906d

Please sign in to comment.