Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate MSVC tests on new runners #1736

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading