Skip to content

Commit fe46969

Browse files
committed
ci: Update Windows build workflow
- Add MSYS2 environment setup - Configure GCC, SDL2, and PortAudio dependencies - Set proper shell for Windows builds
1 parent 0fb0a7f commit fe46969

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/c-cpp.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,27 @@ on:
88

99
jobs:
1010
build:
11-
1211
runs-on: windows-latest
12+
defaults:
13+
run:
14+
shell: msys2 {0}
15+
1316
steps:
1417
- uses: actions/checkout@v4
18+
19+
- name: Setup MSYS2
20+
uses: msys2/setup-msys2@v2
21+
with:
22+
msystem: MINGW64
23+
update: true
24+
install: >-
25+
mingw-w64-x86_64-gcc
26+
mingw-w64-x86_64-SDL2
27+
mingw-w64-x86_64-portaudio
28+
make
29+
1530
- name: Build
1631
run: |
1732
cd source
18-
pacman -S mingw-w64-x86_64-gcc
19-
pacman -S mingw-w64-x86_64-SDL2
20-
pacman -S mingw-w64-x86_64-portaudio
2133
make clean
2234
make

0 commit comments

Comments
 (0)