Skip to content

Commit c22ad7d

Browse files
committed
ci: build shared instead of static also in case of windows
1 parent 517d65c commit c22ad7d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,53 +15,53 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
config:
18-
- name: Windows MSVC Release
18+
- name: Windows MSVC
1919
os: windows
2020
os-version: 2022
2121
environment: msvc
2222
shell: pwsh
2323

24-
- name: Windows MingGW Release
24+
- name: Windows MingGW
2525
os: windows
2626
os-version: 2022
2727
environment: mingw
2828
architecture: x86_64
2929
shell: 'msys2 {0}'
3030

31-
- name: Windows UCRT Release
31+
- name: Windows UCRT
3232
os: windows
3333
os-version: 2022
3434
environment: ucrt
3535
architecture: ucrt-x86_64
3636
shell: 'msys2 {0}'
3737

38-
- name: Linux Release
38+
- name: Linux
3939
os: ubuntu
4040
os-version: 24.04
4141
use-clang: false
4242
shell: bash
4343

44-
- name: Linux Clang Release (libstdc++)
44+
- name: Linux Clang (libstdc++)
4545
os: ubuntu
4646
os-version: 24.04
4747
use-clang: true
4848
use-clang_stdlib: false
4949
shell: bash
5050

51-
- name: Linux Clang Release (libc++)
51+
- name: Linux Clang (libc++)
5252
os: ubuntu
5353
os-version: 24.04
5454
use-clang: true
5555
use-clang_stdlib: true
5656
shell: bash
5757

58-
- name: MacOS Release
58+
- name: MacOS
5959
os: macos
6060
os-version: 13
6161
arm: false
6262
shell: bash
6363

64-
- name: MacOS Release (Arm64)
64+
- name: MacOS (Arm64)
6565
os: macos
6666
os-version: 14
6767
arm: true
@@ -186,10 +186,10 @@ jobs:
186186
- name: Build and Install OOPetris
187187
run: |
188188
cd oopetris
189-
meson setup build -Dbuildtype=release -Ddefault_library=static -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} -Donly_build_libs=true ${{ matrix.config.os == 'windows' && '-Db_vscrt=from_buildtype' || '' }} ${{ (matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )) && '-Dprefix=$RUNNER_TEMP/msys64${MINGW_PREFIX}/' || ''}}
189+
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' }} -Donly_build_libs=true ${{ matrix.config.os == 'windows' && '-Db_vscrt=from_buildtype' || '' }} ${{ (matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )) && '-Dprefix=$RUNNER_TEMP/msys64${MINGW_PREFIX}/' || ''}}
190190
${{ matrix.config.os == 'ubuntu' && 'sudo' || '' }} meson install -C build
191191
192192
- name: Build Wrapper
193193
run: |
194-
meson setup -Dtests=false -Dexample=true build -Dbuildtype=release -Ddefault_library=static -Dclang_libcpp=${{ ( ( matrix.config.os == 'ubuntu' && matrix.config.use-clang == true && matrix.config.use-clang_stdlib ) || matrix.config.os == 'macos' ) && 'enabled' || 'disabled' }} ${{ matrix.config.os == 'windows' && '-Db_vscrt=from_buildtype' || '' }}
194+
meson setup -Dtests=false -Dexample=true 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' }} ${{ matrix.config.os == 'windows' && '-Db_vscrt=from_buildtype' || '' }}
195195
meson compile -C build

0 commit comments

Comments
 (0)