Skip to content

Commit

Permalink
fix msvc build type setting
Browse files Browse the repository at this point in the history
  • Loading branch information
dmah42 committed Jan 30, 2025
1 parent 221cc3f commit bbdf113
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,19 +72,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: lukka/get-cmake@latest

- name: configure cmake
run: >
cmake -S . -B _build/
-G "${{ matrix.generator }}"
-DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
-DBUILD_SHARED_LIBS=${{ matrix.lib == 'shared' }}
- name: build
uses: threeal/[email protected]
with:
build-dir: ${{ runner.workspace }}/_build
generator: ${{ matrix.generator }}
options: |
BENCHMARK_DOWNLOAD_DEPENDENCIES=ON
BUILD_SHARED_LIBS=${{ matrix.lib == 'shared' }}
CMAKE_BUILD_TYPE=${{ matrix.build_type }}
run: cmake --build ${{ runner.workspace }}/_build --config ${{ matrix.build_type }}

- name: test
working-directory: ${{ runner.workspace }}/_build
run: ctest -C ${{ matrix.build_type }} -VV
run: ctest --test-dir ${{ runner.workspace }}/_build -C ${{ matrix.build_type }} -VV

msys2:
name: ${{ matrix.os }}.${{ matrix.build_type }}.${{ matrix.lib }}.${{ matrix.msys2.msystem }}
Expand Down

0 comments on commit bbdf113

Please sign in to comment.