-
-
Notifications
You must be signed in to change notification settings - Fork 12
96 lines (80 loc) · 2.42 KB
/
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
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
89
90
91
92
93
94
95
name: MSYS2 build
on: push
jobs:
mingw:
if: false # Disables this entire workflow, since it always fails
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: clang64, env: clang-x86_64 }
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Checkout Max SDK
uses: actions/checkout@v3
with:
repository: jcelerier/max-sdk-base
submodules: "recursive"
path: max-sdk-base
- name: Checkout dependencies
uses: actions/checkout@v3
with:
repository: ossia/score
submodules: "recursive"
path: score
- 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: |
mkdir build-debug
cd build-debug
export MAX_SDK=$PWD/../max-sdk-base
export SDK_3RDPARTY=$PWD/../score/3rdparty
export VERBOSE=1
cmake .. \
-DCMAKE_BUILD_TYPE=Debug \
-DBUILD_TESTING=1 \
-Dpybind11_DIR=$SDK_3RDPARTY/libossia/3rdparty/pybind11 \
-DAVND_MAXSDK_PATH=$MAX_SDK \
-DVST3_SDK_ROOT=$SDK_3RDPARTY/vst3 \
-DCMAKE_PREFIX_PATH="$SDK_3RDPARTY/libpd/pure-data/src"
cmake --build .
- name: Test debug
shell: msys2 {0}
run: |
cd build-debug
cmake --build . --target test
- name: Build release
shell: msys2 {0}
run: |
mkdir build-release
cd build-release
export MAX_SDK=$PWD/../max-sdk-base
export SDK_3RDPARTY=$PWD/../score/3rdparty
export VERBOSE=1
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=1 \
-Dpybind11_DIR=$SDK_3RDPARTY/libossia/3rdparty/pybind11 \
-DAVND_MAXSDK_PATH=$MAX_SDK \
-DVST3_SDK_ROOT=$SDK_3RDPARTY/vst3 \
-DCMAKE_PREFIX_PATH="$SDK_3RDPARTY/libpd/pure-data/src"
cmake --build .
- name: Test release
shell: msys2 {0}
run: |
cd build-release
cmake --build . --target test