Skip to content

Commit

Permalink
Reinstate MSVC tests on new runners (#1736)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou authored Feb 12, 2024
1 parent cf4ab5a commit 2fc0f9e
Showing 1 changed file with 26 additions and 27 deletions.
53 changes: 26 additions & 27 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,34 +73,33 @@ jobs:
##################################################################################################
## Windows Targets
##################################################################################################
# msvc:
# runs-on: [windows-2022]
# strategy:
# fail-fast: false
# matrix:
# cfg:
# - { mode: Debug, options: "-DEVE_NO_FORCEINLINE"}
# - { mode: Release, options: ""}
msvc:
runs-on: [windows-2022]
strategy:
fail-fast: false
matrix:
cfg:
- { mode: Debug, options: "-DEVE_NO_FORCEINLINE"}

# steps:
# - name: Fetch current branch
# uses: actions/checkout@v3
# - name: Running CMake for MSVC ${{ matrix.cfg.mode }} ${{ matrix.cfg.options }}
# run: |
# mkdir build && cd build
# cmake -G "Visual Studio 17 2022" -A x64 .. -DCMAKE_CXX_FLAGS="${{ matrix.cfg.options }}"
# - name: Compiling Unit Tests
# run: |
# cd build
# cmake --build . --target unit.arch.exe --config ${{ matrix.cfg.mode }} --parallel 2
# cmake --build . --target unit.meta.exe --config ${{ matrix.cfg.mode }} --parallel 2
# cmake --build . --target unit.internals.exe --config ${{ matrix.cfg.mode }} --parallel 2
# - name: Running Tests
# run: |
# cd build
# ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.arch.*.exe
# ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.meta.*.exe
# ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.internals.*.exe
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Running CMake for MSVC ${{ matrix.cfg.mode }} ${{ matrix.cfg.options }}
run: |
mkdir build && cd build
cmake -G "Visual Studio 17 2022" -A x64 .. -DCMAKE_CXX_FLAGS="${{ matrix.cfg.options }}"
- name: Compiling Unit Tests
run: |
cd build
cmake --build . --target unit.arch.exe --config ${{ matrix.cfg.mode }} --parallel 2
cmake --build . --target unit.meta.exe --config ${{ matrix.cfg.mode }} --parallel 2
cmake --build . --target unit.internals.exe --config ${{ matrix.cfg.mode }} --parallel 2
- name: Running Tests
run: |
cd build
ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.arch.*.exe
ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.meta.*.exe
ctest -C ${{ matrix.cfg.mode }} --output-on-failure -R ^unit.internals.*.exe
##################################################################################################
## X86 Targets
Expand Down

0 comments on commit 2fc0f9e

Please sign in to comment.