mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
1bd0a55aa7
VS 2010 and MinGW are the two trickiest Windows environments so this should hopefully catch more mistakes. This is probably not the right way to set up any of this, but it works for now. This is also a first step towards building our release binaries with CI. [skip travis]
61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
image:
|
|
- Visual Studio 2015
|
|
- Visual Studio 2019
|
|
branches:
|
|
only:
|
|
- ci
|
|
- master
|
|
- 3.3-stable
|
|
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 10 2010
|
|
BUILD_SHARED_LIBS: ON
|
|
CFLAGS: /WX
|
|
- GENERATOR: Visual Studio 10 2010
|
|
BUILD_SHARED_LIBS: OFF
|
|
CFLAGS: /WX
|
|
- GENERATOR: Visual Studio 16 2019
|
|
BUILD_SHARED_LIBS: ON
|
|
CFLAGS: /WX
|
|
- GENERATOR: Visual Studio 16 2019
|
|
BUILD_SHARED_LIBS: OFF
|
|
CFLAGS: /WX
|
|
matrix:
|
|
fast_finish: true
|
|
exclude:
|
|
- image: Visual Studio 2015
|
|
GENERATOR: Visual Studio 16 2019
|
|
- image: Visual Studio 2019
|
|
GENERATOR: Visual Studio 10 2010
|
|
- image: Visual Studio 2019
|
|
GENERATOR: MinGW Makefiles
|
|
for:
|
|
-
|
|
matrix:
|
|
except:
|
|
- GENERATOR: Visual Studio 10 2010
|
|
build_script:
|
|
- set PATH=%PATH:C:\Program Files\Git\usr\bin=C:\MinGW\bin%
|
|
- cmake -S . -B build -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
|
|
- cmake --build build
|
|
-
|
|
matrix:
|
|
only:
|
|
- GENERATOR: Visual Studio 10 2010
|
|
build_script:
|
|
- cmake -S . -B build -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
|
|
- cmake --build build --target glfw
|
|
notifications:
|
|
- provider: Email
|
|
to:
|
|
- ci@glfw.org
|
|
on_build_failure: true
|
|
on_build_success: false
|