Skip to content

Commit

Permalink
Abandon ctest in favor of separate test and benchmark binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
sudara committed Jun 7, 2024
1 parent 262481e commit a6d4329
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,18 @@ jobs:
- name: Linux
os: ubuntu-22.04
pluginval-binary: ./pluginval
tests-binary: ./Tests
benchmarks-binary: ./Benchmarks
- name: macOS
os: macos-14
pluginval-binary: pluginval.app/Contents/MacOS/pluginval
tests-binary: ./Tests
benchmarks-binary: ./Benchmarks
- name: Windows
os: windows-latest
pluginval-binary: ./pluginval.exe
tests-binary: ./Tests.exe
benchmarks-binary: ./Benchmarks.exe

steps:
# Setup MSVC toolchain and developer command prompt (Windows)
Expand Down Expand Up @@ -119,8 +125,12 @@ jobs:

- name: Test
working-directory: ${{ env.BUILD_DIR }}
run: ctest --version && ctest -j1 --output-on-failure -VV
run: ${{ matrix.tests-binary }}

- name: Run Benchmarks
working-directory: ${{ env.BUILD_DIR }}
run: ${{ matrix.benchmarks-binary }}

- name: Read in .env from CMake # see GitHubENV.cmake
run: |
cat .env # show us the config
Expand Down

0 comments on commit a6d4329

Please sign in to comment.