File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff 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
3543 architecture : ucrt-x86_64
3644 shell : ' msys2 {0}'
3745
38- - name : Linux
46+ - name : Linux
3947 os : ubuntu
4048 os-version : 24.04
4149 use-clang : false
@@ -186,10 +194,10 @@ jobs:
186194 - name : Build and Install OOPetris
187195 run : |
188196 cd oopetris
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}/' || ''}}
197+ 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' }} -Donly_build_libs=true ${{ matrix.config.os == 'windows' && ( ( matrix.config.environment == 'msvc' && matrix.config.static ) && ' -Db_vscrt=static_from_buildtype' || '-Db_vscrt= from_buildtype') || '' }} ${{ (matrix.config.os == 'windows' && ( matrix.config.environment == 'mingw' || matrix.config.environment == 'ucrt' )) && '-Dprefix=$RUNNER_TEMP/msys64${MINGW_PREFIX}/' || ''}}
190198 ${{ matrix.config.os == 'ubuntu' && 'sudo' || '' }} meson install -C build
191199
192200 - name : Build Wrapper
193201 run : |
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' || '' }}
202+ meson setup -Dtests=false -Dexample=true 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' }} ${{ matrix.config.os == 'windows' && ( ( matrix.config.environment == 'msvc' && matrix.config.static ) && ' -Db_vscrt=static_from_buildtype' || '-Db_vscrt= from_buildtype') || '' }}
195203 meson compile -C build
You can’t perform that action at this time.
0 commit comments