-
-
Notifications
You must be signed in to change notification settings - Fork 34
52 lines (45 loc) · 1.23 KB
/
cmake-mingw.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: CMake with MinGW
on:
push:
pull_request:
branches: [ master, dev, v5.0 ]
#env:
# BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw32, env: i686, build: Release }
- { sys: mingw32, env: i686, build: Debug }
- { sys: mingw64, env: x86_64, build: Release }
- { sys: mingw64, env: x86_64, build: Debug }
name: ${ matrix.sys }}
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: '${{ matrix.icon }} Configure MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
install: >-
git
make
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-cmake
mingw-w64-${{matrix.env}}-ninja
- name: Build
working-directory: ./Emulator
run: |
cmake -G Ninja -B build -DCMAKE_BUILD_TYPE=${{matrix.build}}
cmake --build build --config ${{matrix.build}}
#- name: Test
# working-directory: ${{github.workspace}}/build
# run: ctest --verbose -C ${{matrix.build}}