-
Notifications
You must be signed in to change notification settings - Fork 17
156 lines (152 loc) · 5.57 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
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '30 13 * * *'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, 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 -DFLTK_USE_SYSTEM_LIBPNG=OFF -DFLTK_USE_SYSTEM_LIBJPEG=OFF -DFLTK_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DFLTK_BUILD_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 -DFLTK_OPTION_LARGE_FILE=ON -DFLTK_BUILD_HTML_DOCS=OFF -DFLTK_BUILD_PDF_DOCS=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release -DFLTK_GRAPHICS_CAIRO=ON -DFLTK_USE_PANGO=ON -DFLTK_BACKEND_WAYLAND=OFF;;
macOS ) cmake -Bbin -GNinja -DFLTK_USE_SYSTEM_LIBPNG=OFF -DFLTK_USE_SYSTEM_LIBJPEG=OFF -DFLTK_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DFLTK_BUILD_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 -DFLTK_OPTION_LARGE_FILE=ON -DFLTK_BUILD_HTML_DOCS=OFF -DFLTK_BUILD_PDF_DOCS=OFF -DCMAKE_INSTALL_PREFIX=bin -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_ARCHITECTURES=x86_64;;
* ) cmake -Bbin -GNinja -DFLTK_USE_SYSTEM_LIBPNG=OFF -DFLTK_USE_SYSTEM_LIBJPEG=OFF -DFLTK_USE_SYSTEM_ZLIB=OFF -DCFLTK_LINK_IMAGES=ON -DOpenGL_GL_PREFERENCE=GLVND -DFLTK_BUILD_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 -DFLTK_OPTION_LARGE_FILE=ON -DFLTK_BUILD_HTML_DOCS=OFF -DFLTK_BUILD_PDF_DOCS=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 calendar
working-directory: calendar
shell: bash
run: cargo build --verbose
- name: Build csv
run: cargo build --verbose
working-directory: csv
shell: bash
- name: Build femtovg
run: cargo build --verbose
working-directory: femtovg
shell: bash
- name: Build ffmpeg
run: |
if [ "$RUNNER_OS" == "Linux" ] || [ "$RUNNER_OS" == "macOS" ]; then
cargo build --verbose
fi
working-directory: ffmpeg
shell: bash
- name: Build framebuffer
run: cargo build --verbose
working-directory: framebuffer
shell: bash
- name: Build glium
run: cargo build --verbose
working-directory: glium
shell: bash
- name: Build glow
run: cargo build --verbose
working-directory: glow
shell: bash
- name: Build glut
run: cargo build --verbose
working-directory: glut
shell: bash
- name: Build image
run: cargo build --verbose
working-directory: image
shell: bash
- name: Build libvlc
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
cargo build --verbose
fi
working-directory: libvlc
shell: bash
- name: Build mpv
run: cargo build --verbose
working-directory: mpv
shell: bash
- name: Build musicplayer
run: cargo build --verbose
working-directory: musicplayer
shell: bash
- name: Build opengl
run: cargo build --verbose
working-directory: opengl
shell: bash
- name: Build pixels
run: cargo build --verbose
working-directory: pixels
shell: bash
- name: Build plotters
run: cargo build --verbose
working-directory: plotters
shell: bash
- name: Build raqote
run: cargo build --verbose
working-directory: raqote
shell: bash
- name: Build rounded-svg
run: cargo build --verbose
working-directory: rounded-svg
shell: bash
- name: Build speedy2d
run: cargo build --verbose
working-directory: speedy2d
shell: bash
- name: Build systray
run: cargo build --verbose
working-directory: systray
shell: bash
- name: Build tinyskia
run: cargo build --verbose
working-directory: tinyskia
shell: bash
- name: Build web-todo
run: cargo build --verbose
working-directory: web-todo
shell: bash
- name: Build web-todo2
run: cargo build --verbose
working-directory: web-todo2
shell: bash
- name: Build wgpu
run: cargo build --verbose
working-directory: wgpu
shell: bash
- name: Build xterm
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
cargo build --verbose
fi
working-directory: xterm
shell: bash
- name: Build egui-demo
run: cargo build --verbose
working-directory: egui-demo
shell: bash
- name: Build terminal
run: cargo build --verbose
working-directory: terminal
shell: bash