mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
ci: build isle with msys2 + msvc on GitHub actions
This commit is contained in:
parent
16d04bc083
commit
08c474094e
45
.github/workflows/build.yml
vendored
45
.github/workflows/build.yml
vendored
@ -3,6 +3,45 @@ name: Build
|
|||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
build-current-toolchain:
|
||||||
|
name: 'Current ${{ matrix.compiler.name }}'
|
||||||
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
compiler:
|
||||||
|
- { name: 'msvc', setup-ninja: true, setup-cmake: true }
|
||||||
|
- { name: 'msys2 mingw32', setup-msys2: true }
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup cmake
|
||||||
|
if: matrix.compiler.setup-cmake
|
||||||
|
uses: jwlawson/actions-setup-cmake@v1.13
|
||||||
|
with:
|
||||||
|
# Use minimum supported version
|
||||||
|
cmake-version: '3.13.x'
|
||||||
|
|
||||||
|
- name: Setup ninja
|
||||||
|
if: matrix.compiler.setup-ninja
|
||||||
|
uses: ashutoshvarma/setup-ninja@master
|
||||||
|
|
||||||
|
- name: Set up MSYS2
|
||||||
|
if: matrix.compiler.setup-msys2
|
||||||
|
uses: msys2/setup-msys2@v2
|
||||||
|
with:
|
||||||
|
msystem: mingw32
|
||||||
|
install: >-
|
||||||
|
mingw-w64-i686-cc
|
||||||
|
mingw-w64-i686-cmake
|
||||||
|
mingw-w64-i686-ninja
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
shell: cmd
|
||||||
|
run: |
|
||||||
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -GNinja
|
||||||
|
cmake --build build
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
@ -28,10 +67,8 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call .\msvc420\bin\VCVARS32.BAT x86
|
call .\msvc420\bin\VCVARS32.BAT x86
|
||||||
mkdir build
|
cmake -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "NMake Makefiles"
|
||||||
cd build
|
cmake --build build
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "NMake Makefiles"
|
|
||||||
cmake --build .
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@master
|
uses: actions/upload-artifact@master
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user