This commit is contained in:
jpr42 2025-02-07 16:35:57 +00:00 committed by GitHub
commit 1d6705c579
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 23 additions and 14 deletions

View file

@ -9,12 +9,6 @@ branches:
skip_tags: true
environment:
matrix:
- GENERATOR: MinGW Makefiles
BUILD_SHARED_LIBS: ON
CFLAGS: -Werror
- GENERATOR: MinGW Makefiles
BUILD_SHARED_LIBS: OFF
CFLAGS: -Werror
- GENERATOR: Visual Studio 12 2013
BUILD_SHARED_LIBS: ON
CFLAGS: /WX
@ -24,14 +18,6 @@ environment:
matrix:
fast_finish: true
for:
-
matrix:
only:
- GENERATOR: MinGW Makefiles
build_script:
- set PATH=%PATH:C:\Program Files\Git\usr\bin=C:\MinGW\bin%
- cmake -B build -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
- cmake --build build
-
matrix:
only:

View file

@ -74,6 +74,29 @@ jobs:
- name: Build Cocoa shared library
run: cmake --build build-cocoa-shared --parallel
build-mingw:
name: Windows (MINGW)
runs-on: windows-latest
timeout-minutes: 4
strategy:
matrix:
BUILD_SHARED_LIBS: [ ON, OFF ]
defaults:
run:
# Use MinGW environment
shell: bash
env:
CFLAGS: -Werror
CMAKE_GENERATOR: MinGW Makefiles
steps:
- uses: actions/checkout@v4
- name: Configure MINGW library
run: cmake -B build -DBUILD_SHARED_LIBS=${{matrix.BUILD_SHARED_LIBS}}
- name: Build MINGW library
run: cmake --build build --parallel
- name: Install MINGW library to /tmp
run: cmake --install build --prefix /tmp
build-windows-vs2022:
name: Windows (VS2022)
runs-on: windows-latest