Skip to content

Commit d1734f4

Browse files
committed
GitHub Actions: Move Windows over to Ninja instead of Visual Studio.
1 parent c058e6b commit d1734f4

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,27 @@ jobs:
1313
- { name: Windows, os: windows-2025 }
1414
- { name: MacOS, os: macos-latest }
1515
steps:
16-
- name: Set up SDL
17-
id: sdl
18-
uses: libsdl-org/setup-sdl@v1
19-
with:
20-
version: sdl3-latest
2116
- name: Set up Linux dependencies
2217
if: ${{ runner.os == 'Linux' }}
2318
run: |
2419
sudo apt-get update
2520
sudo apt-get -y install cmake libasound2-dev
21+
- name: Set up MSVC toolchain
22+
uses: ilammy/msvc-dev-cmd@v1
23+
if: ${{ matrix.platform.name == 'Windows' }}
24+
with:
25+
arch: x64
26+
- name: Set up ninja
27+
uses: ./.github/actions/setup-ninja
28+
- name: Set up SDL
29+
id: sdl
30+
uses: libsdl-org/setup-sdl@v1
31+
with:
32+
version: sdl3-latest
33+
cmake-generator: Ninja
2634
- name: Get SDL_native_midi sources
2735
uses: actions/checkout@v4
2836
- name: Configure CMake
29-
run: cmake -B build ${{ matrix.platform.flags }}
37+
run: cmake -B build -G Ninja ${{ matrix.platform.flags }}
3038
- name: Build
3139
run: cmake --build build/

0 commit comments

Comments
 (0)