-
Notifications
You must be signed in to change notification settings - Fork 1
193 lines (168 loc) · 6.34 KB
/
jit.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
name: JIT
on: push
jobs:
build:
name: "${{ matrix.config.name }} ${{ matrix.version }}"
runs-on: ${{ matrix.config.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
version: [ 3.1.11 ]
config:
- {
name: "Windows",
os: windows-latest,
score: "win64.exe",
sdk: windows-sdk.zip,
}
- {
name: "Ubuntu",
os: ubuntu-latest,
score: "linux-amd64.AppImage",
sdk: linux-sdk.zip,
}
- {
name: "macOS",
os: macos-latest,
score: "macOS.dmg",
sdk: mac-sdk.zip,
}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Download score
shell: bash
run: |
SCORE_FILENAME=ossia.score-${{ matrix.version }}-${{ matrix.config.score }}
curl -L -O "https://github.com/ossia/score/releases/download/v${{ matrix.version }}/$SCORE_FILENAME"
- name: Install score
if: matrix.config.name == 'macOS'
shell: bash
run: |
SCORE_FILENAME=ossia.score-${{ matrix.version }}-${{ matrix.config.score }}
/usr/bin/hdiutil convert -quiet $SCORE_FILENAME -format UDTO -o score
/usr/bin/hdiutil attach -quiet -nobrowse -noverify -noautoopen -mountpoint /Volumes/score score.cdr
ls /Volumes
ls /Volumes/score
- name: Install score
if: matrix.config.name == 'Windows'
shell: bash
run: |
SCORE_FILENAME=ossia.score-${{ matrix.version }}-${{ matrix.config.score }}
7z x $SCORE_FILENAME
- name: Download SDK
shell: bash
run: |
SDK_FILENAME=${{ matrix.config.sdk }}
curl -L -O "https://github.com/ossia/score/releases/download/v${{ matrix.version }}/$SDK_FILENAME"
mkdir -p "$HOME/Documents/ossia/score/sdk"
unzip -qq "$SDK_FILENAME" -d "$HOME/Documents/ossia/score/sdk/${{ matrix.version }}"
- name: Compile
if: matrix.config.name == 'macOS'
shell: bash
run: |
SCORE_FILENAME=/Volumes/score/score.app/Contents/MacOS/score
find . -name '*.hpp' -exec $SCORE_FILENAME --no-gui --compile-addon {} \;
- name: Compile
if: matrix.config.name == 'Windows'
shell: bash
run: |
SCORE_FILENAME=./score.exe
export SCORE_JIT_SDK="$PWD/sdk/usr"
export QT_FORCE_STDERR_LOGGING=1
export QT_ASSUME_STDERR_HAS_CONSOLE=1
find . -name '*.hpp' -exec $SCORE_FILENAME --no-gui --compile-addon {} \;
- name: Compile
if: matrix.config.name == 'Ubuntu'
shell: bash
run: |
sudo apt -y install xvfb libasound2 libxcb1 libegl1 libgl1-mesa-dev libegl1-mesa-dev libglvnd0 libx11-6 libxcb-glx0 libgl1 libdbus-1-3 libxcb-xkb1 libxkbcommon-x11-0 libxcb-xkb1 libfuse2
SCORE_FILENAME=ossia.score-${{ matrix.version }}-${{ matrix.config.score }}
chmod +x $SCORE_FILENAME
find . -name '*.hpp' -exec xvfb-run --auto-servernum ./$SCORE_FILENAME --no-gui --compile-addon {} \;
build_head:
name: "${{ matrix.config.name }} (latest)"
runs-on: ${{ matrix.config.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows",
os: windows-latest,
score: "win64.exe",
sdk: windows-sdk.zip,
}
- {
name: "Ubuntu",
os: ubuntu-latest,
score: "linux-amd64.AppImage",
sdk: linux-sdk.zip,
}
- {
name: "macOS",
os: macos-latest,
score: "macOS.dmg",
sdk: mac-sdk.zip,
}
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Download score
shell: bash
run: |
SCORE_FILENAME=ossia.score-master-${{ matrix.config.score }}
curl -L -O "https://github.com/ossia/score/releases/download/continuous/$SCORE_FILENAME"
- name: Install score
if: matrix.config.name == 'macOS'
shell: bash
run: |
SCORE_FILENAME=ossia.score-master-${{ matrix.config.score }}
/usr/bin/hdiutil convert -quiet $SCORE_FILENAME -format UDTO -o score
/usr/bin/hdiutil attach -quiet -nobrowse -noverify -noautoopen -mountpoint /Volumes/score score.cdr
ls /Volumes
ls /Volumes/score
- name: Install score
if: matrix.config.name == 'Windows'
shell: bash
run: |
SCORE_FILENAME=ossia.score-master-${{ matrix.config.score }}
7z x $SCORE_FILENAME
- name: Download SDK
shell: bash
run: |
SDK_FILENAME=${{ matrix.config.sdk }}
curl -L -O "https://github.com/ossia/score/releases/download/continuous/$SDK_FILENAME"
mkdir -p "$HOME/Documents/ossia/score/sdk"
unzip -qq "$SDK_FILENAME" -d "sdk"
- name: Compile
if: matrix.config.name == 'macOS'
shell: bash
run: |
export SCORE_JIT_SDK="$PWD/sdk/usr"
SCORE_FILENAME=/Volumes/score/score.app/Contents/MacOS/score
find . -name '*.hpp' -exec $SCORE_FILENAME --no-gui --compile-addon {} \;
- name: Compile
if: matrix.config.name == 'Windows'
shell: bash
run: |
SCORE_FILENAME=./score.exe
export SCORE_JIT_SDK="$PWD/sdk/usr"
export QT_FORCE_STDERR_LOGGING=1
export QT_ASSUME_STDERR_HAS_CONSOLE=1
find . -name '*.hpp' -exec $SCORE_FILENAME --no-gui --compile-addon {} \;
- name: Compile
if: matrix.config.name == 'Ubuntu'
shell: bash
run: |
sudo apt -y install xvfb libasound2 libxcb1 libegl1 libgl1-mesa-dev libegl1-mesa-dev libglvnd0 libx11-6 libxcb-glx0 libgl1 libdbus-1-3 libxcb-xkb1 libxkbcommon-x11-0 libxcb-xkb1 libfuse2
SCORE_FILENAME=ossia.score-master-${{ matrix.config.score }}
export SCORE_JIT_SDK="$PWD/sdk/usr"
chmod +x $SCORE_FILENAME
find . -name '*.hpp' -exec xvfb-run --auto-servernum ./$SCORE_FILENAME --no-gui --compile-addon {} \;