Skip to content

Commit bcce6d8

Browse files
authored
Merge pull request #394 from penggrin12/msvc-github-workflows
MSVC GitHub workflows
2 parents 199f993 + d4de91a commit bcce6d8

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/Tests.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
platform:
2323
# - { name: Windows VS2019, os: windows-2019 }
24-
# - { name: Windows VS2022, os: windows-2022 }
24+
- { name: Windows VS2022, os: windows-2022 }
2525
- { name: Linux GCC, os: ubuntu-22.04, flags: -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_STANDARD=17 }
2626
- { name: Linux Clang, os: ubuntu-22.04, flags: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_CXX_STANDARD=17 }
2727
#- { name: Linux GCC, os: ubuntu-18.04, flags: -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_CXX_STANDARD=14 }
@@ -42,11 +42,18 @@ jobs:
4242
if: runner.os == 'Linux'
4343
run: sudo apt-get update && sudo apt-get install -y libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev
4444

45-
- name: Configure
45+
- name: Configure Linux
46+
if: runner.os == 'Linux'
4647
run: cmake -B build -S . -DGLFW_BUILD_WAYLAND=OFF -DBUILD_TESTING=ON -DCMAKE_CXX_FLAGS="-Wall -Wextra -Wpedantic" ${{ matrix.platform.flags }} ${{ matrix.type.flags }} ${{ matrix.config.flags }}
48+
49+
- name: Configure Windows
50+
if: runner.os == 'Windows'
51+
run: cmake -B build -S . ${{ matrix.platform.flags }} ${{ matrix.type.flags }} ${{ matrix.config.flags }}
4752

4853
- name: Build
4954
run: cmake --build build
5055

56+
# seem to be failing on windows (even with -C), no clue why
5157
- name: Test
58+
if: runner.os == 'Linux'
5259
run: ctest --verbose --test-dir build

0 commit comments

Comments
 (0)