mirror of
https://github.com/glfw/glfw.git
synced 2025-06-06 15:54:56 +00:00
ci: Use GitHub actions for MINGW CI
This commit is contained in:
parent
e7ea71be03
commit
754d67b5ce
@ -9,12 +9,6 @@ branches:
|
|||||||
skip_tags: true
|
skip_tags: true
|
||||||
environment:
|
environment:
|
||||||
matrix:
|
matrix:
|
||||||
- GENERATOR: MinGW Makefiles
|
|
||||||
BUILD_SHARED_LIBS: ON
|
|
||||||
CFLAGS: -Werror
|
|
||||||
- GENERATOR: MinGW Makefiles
|
|
||||||
BUILD_SHARED_LIBS: OFF
|
|
||||||
CFLAGS: -Werror
|
|
||||||
- GENERATOR: Visual Studio 12 2013
|
- GENERATOR: Visual Studio 12 2013
|
||||||
BUILD_SHARED_LIBS: ON
|
BUILD_SHARED_LIBS: ON
|
||||||
CFLAGS: /WX
|
CFLAGS: /WX
|
||||||
@ -24,14 +18,6 @@ environment:
|
|||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
for:
|
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:
|
matrix:
|
||||||
only:
|
only:
|
||||||
|
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -74,6 +74,29 @@ jobs:
|
|||||||
- name: Build Cocoa shared library
|
- name: Build Cocoa shared library
|
||||||
run: cmake --build build-cocoa-shared --parallel
|
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:
|
build-windows-vs2022:
|
||||||
name: Windows (VS2022)
|
name: Windows (VS2022)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user