Skip to content

Commit d648a45

Browse files
committed
ci: also add static build for windows
1 parent 5028e8f commit d648a45

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
config:
18-
- name: Windows MSVC
18+
- name: Windows MSVC (dynamic)
1919
os: windows
2020
os-version: 2022
2121
environment: msvc
2222
shell: pwsh
23+
static: false
24+
25+
- name: Windows MSVC (static)
26+
os: windows
27+
os-version: 2022
28+
environment: msvc
29+
shell: pwsh
30+
static: true
2331

2432
- name: Windows MingGW
2533
os: windows
@@ -187,7 +195,7 @@ jobs:
187195
brew install sdl2 sdl2_ttf sdl2_mixer sdl2_image
188196
189197
- name: Configure
190-
run: meson setup build -Dbuildtype=release -Ddefault_library=shared -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }}
198+
run: meson setup build -Dbuildtype=release -Ddefault_library=${{( matrix.config.os == 'windows' && matrix.config.environment == 'msvc' && matrix.config.static ) && 'static' ||'shared' }} -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }}
191199

192200
- name: Build
193201
run: meson compile -C build

0 commit comments

Comments
 (0)