forked from stephenberry/glaze
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (36 loc) · 870 Bytes
/
msys2.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
name: msys2-mingw
on:
push:
branches:
- main
- feature/*
paths-ignore:
- '**.md'
pull_request:
branches: [main]
paths-ignore:
- '**.md'
workflow_dispatch:
env:
BUILD_TYPE: Debug
CMAKE_GENERATOR: Ninja
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: MINGW64
install: mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja mingw-w64-x86_64-gcc
- name: Configure CMake
run: mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} ..
- name: Build
run: cmake --build build --config ${{env.BUILD_TYPE}} -j 2
- name: Test
working-directory: build
run: ctest -C ${{env.BUILD_TYPE}} -j 2 --output-on-failure