Skip to content

Commit

Permalink
Compile windows in debug
Browse files Browse the repository at this point in the history
  • Loading branch information
pet-mit committed Jan 31, 2025
1 parent fbc348b commit 0915ab7
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/windows-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ env:
RELEASE_CREATED: ${{ github.event_name == 'release' && github.event.action == 'created' }}

jobs:
strategy:
matrix:
cmake: [
{generator: "Visual Studio 17 2022", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
{generator: "Visual Studio 17 2022", config: Debug, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
]
build:
name: Windows cpp sirius=${{ matrix.sirius }} sirius-release-tag=${{ matrix.sirius-release-tag }}
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -105,7 +111,7 @@ jobs:
run: >
cmake -S. -Bbuild
-G "Visual Studio 17 2022"
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_BUILD_TYPE=${{ matrix.cmake.config }}
-DBUILD_DEPS=ON
-DBUILD_EXAMPLES=${{ env.RELEASE_CREATED == 'true' && 'OFF' || 'ON' }}
-DBUILD_SAMPLES=OFF
Expand All @@ -117,14 +123,14 @@ jobs:
- name: Build
run: >
cmake --build build
--config Release
--config ${{ matrix.cmake.config }}
--target ALL_BUILD
-v -j2
- name: Tests not xpress
working-directory: ./build/
run: >
ctest -C Release
ctest -C ${{ matrix.cmake.config }}
--output-on-failure
-E "(_xpress|_sirius)"
Expand All @@ -133,17 +139,17 @@ jobs:
run: |
$env:XPRESSDIR
Get-ChildItem -Path $env:XPRESSDIR
ctest -V -C Release --output-on-failure -R "_xpress"
ctest -V -C ${{ matrix.cmake.config }} --output-on-failure -R "_xpress"
- name: Tests sirius
working-directory: ./build/
run: >
ctest -V -C Release --output-on-failure -R "sirius"
ctest -V -C ${{ matrix.cmake.config }} --output-on-failure -R "sirius"
- name: Install
run: >
cmake --build build
--config Release
--config ${{ matrix.cmake.config }}
--target INSTALL
-v
Expand Down

0 comments on commit 0915ab7

Please sign in to comment.