-
Notifications
You must be signed in to change notification settings - Fork 17
256 lines (252 loc) · 8.49 KB
/
rust.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
---
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '30 13 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os:
- windows-latest
- macos-11
- ubuntu-latest
steps:
- name: Download deps
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
sudo apt-get update
sudo apt-get install -y lib{pango1.0,x11,xext,xft,xinerama,mpv}-dev\
lib{xcursor,xrender,xfixes,webkit2gtk-4.1,vlc,png,gl1-mesa}-dev\
ninja-build libglu1-mesa-dev
fi
- uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: build cfltk
run: |
git clone https://github.com/MoAlyousef/cfltk
pushd cfltk || return 1
git submodule update --init --recursive
case ${RUNNER_OS} in
Linux ) cmake -Bbin -GNinja -DOPTION_USE_SYSTEM_LIBPNG=ON -DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DOPTION_USE_GL=ON -DCFLTK_USE_OPENGL=ON -DCFLTK_SINGLE_THREADED=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCFLTK_CARGO_BUILD=ON -DFLTK_BUILD_EXAMPLES=OFF -DFLTK_BUILD_TEST=OFF -DOPTION_LARGE_FILE=ON -DOPTION_USE_THREADS=ON -DOPTION_BUILD_HTML_DOCUMENTATION=OFF -DOPTION_BUILD_PDF_DOCUMENTATION=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release -DOPTION_USE_PANGO=ON;;
macOS ) cmake -Bbin -GNinja -DOPTION_USE_SYSTEM_LIBPNG=OFF -DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DOPTION_USE_GL=ON -DCFLTK_USE_OPENGL=ON -DCFLTK_SINGLE_THREADED=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCFLTK_CARGO_BUILD=ON -DFLTK_BUILD_EXAMPLES=OFF -DFLTK_BUILD_TEST=OFF -DOPTION_LARGE_FILE=ON -DOPTION_USE_THREADS=ON -DOPTION_BUILD_HTML_DOCUMENTATION=OFF -DOPTION_BUILD_PDF_DOCUMENTATION=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release;;
* ) cmake -Bbin -GNinja -DOPTION_USE_SYSTEM_LIBPNG=OFF -DOPTION_USE_SYSTEM_LIBJPEG=OFF -DOPTION_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DOPTION_USE_GL=ON -DCFLTK_USE_OPENGL=ON -DCFLTK_SINGLE_THREADED=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCFLTK_CARGO_BUILD=ON -DFLTK_BUILD_EXAMPLES=OFF -DFLTK_BUILD_TEST=OFF -DOPTION_LARGE_FILE=ON -DOPTION_USE_THREADS=ON -DOPTION_BUILD_HTML_DOCUMENTATION=OFF -DOPTION_BUILD_PDF_DOCUMENTATION=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release;;
esac
cmake --build bin --parallel --target install
export CFLTK_BUNDLE_DIR="${PWD}/bin/lib"
shell: bash
- name: Build cairo
working-directory: cairo
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build 7gui
working-directory: 7gui
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build cairo_shadow_button
working-directory: cairo_shadow_button
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build calendar
working-directory: calendar
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build csv
working-directory: csv
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build egui
working-directory: egui
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build femtovg
working-directory: femtovg
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build ffmpeg
working-directory: ffmpeg
shell: bash
run: |
case ${RUNNER_OS} in
Linux | macOS) cargo build --quiet || cargo build --verbose;;
esac
- name: Build flcalculator
working-directory: flcalculator
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build fldialect
working-directory: fldialect
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build flmusic
working-directory: flmusic
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build flpicture
working-directory: flpicture
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build flresters
working-directory: flresters
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build fltext
working-directory: fltext
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build framebuffer
working-directory: framebuffer
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build glium
working-directory: glium
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build glow
working-directory: glow
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build glut
working-directory: glut
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build image
working-directory: image
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build inner
working-directory: inner
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build libvlc
working-directory: libvlc
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build mpv
working-directory: mpv
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build musicplayer
working-directory: musicplayer
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build opengl
working-directory: opengl
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build pixels
working-directory: pixels
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build plotters
working-directory: plotters
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build raqote
working-directory: raqote
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build rounded-svg
working-directory: rounded-svg
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build speedy2d
working-directory: speedy2d
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build systray
working-directory: systray
shell: bash
run: |
if [[ ${RUNNER_OS} == "Windows" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build terminal
working-directory: terminal
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build tinyskia
working-directory: tinyskia
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build web-todo
working-directory: web-todo
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build web-todo2
working-directory: web-todo2
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build webview
working-directory: webview
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi
- name: Build wgpu
working-directory: wgpu
shell: bash
run: |
cargo build --quiet || cargo build --verbose
- name: Build xterm
working-directory: xterm
shell: bash
run: |
if [[ ${RUNNER_OS} == "Linux" ]]; then
cargo build --quiet || cargo build --verbose
fi