-
-
Notifications
You must be signed in to change notification settings - Fork 76
89 lines (77 loc) · 2.08 KB
/
mingw.yml
File metadata and controls
89 lines (77 loc) · 2.08 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: MSYS2 build
on:
push:
branches:
- master
tags:
- v*
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
paths-ignore:
- '**.md'
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
mingw:
runs-on: windows-latest
strategy:
matrix:
sys:
- mingw64
- ucrt64
- clang64
# - clangarm64
steps:
- name: Check out repository code
uses: actions/checkout@v6
with:
submodules: 'recursive'
- name: Setup msys2 and mingw-w64
uses: msys2/setup-msys2@v2
with:
msystem: ${{matrix.sys}}
update: true
pacboy: >-
cmake:p
ninja:p
toolchain:p
cppwinrt:p
boost:p
- name: Build debug
shell: msys2 {0}
run: |
cmake -S . -B build-debug \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=1 \
-DLIBREMIDI_EXAMPLES=1 \
-DLIBREMIDI_TESTS=1 \
-DLIBREMIDI_CI=1 \
-DCMAKE_CTEST_ARGUMENTS="--rerun-failed;--output-on-failure" \
-DCMAKE_INSTALL_PREFIX=install
cmake --build build-debug
cmake --build build-debug --target install
- name: Test debug
shell: msys2 {0}
run: |
cmake --build build-debug --target test
- name: Build release
shell: msys2 {0}
run: |
cmake -S . -B build-release \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=1 \
-DLIBREMIDI_EXAMPLES=1 \
-DLIBREMIDI_TESTS=1 \
-DLIBREMIDI_CI=1 \
-DCMAKE_CTEST_ARGUMENTS="--rerun-failed;--output-on-failure" \
-DCMAKE_INSTALL_PREFIX=install
cmake --build build-release
cmake --build build-release --target install
- name: Test release
shell: msys2 {0}
run: |
cmake --build build-release --target test