22
22
jobs :
23
23
rs-lints :
24
24
name : Rust lints (fmt, check, cranky, tests, doc)
25
- runs-on : ubuntu-latest
25
+ runs-on : ubuntu-latest-16-cores
26
+ container :
27
+ image : rerunio/ci_docker:0.1
28
+ env :
29
+ RUSTFLAGS : ${{env.RUSTFLAGS}}
30
+ RUSTDOCFLAGS : ${{env.RUSTDOCFLAGS}}
26
31
steps :
27
32
- uses : actions/checkout@v2
28
33
29
- - uses : actions-rs/toolchain@v1
30
- with :
31
- profile : minimal
32
- toolchain : 1.65.0
33
- override : true
34
- components : rustfmt, clippy
35
-
36
- - run : |
37
- sudo apt-get update
38
- sudo apt-get install libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev # eframe reqs
39
-
40
34
- name : Set up cargo cache
41
35
uses : Swatinem/rust-cache@v2
36
+ with :
37
+ env-vars : CARGO CC CFLAGS CXX CMAKE RUST CACHE_KEY
42
38
43
39
- name : Rustfmt
44
40
uses : actions-rs/cargo@v1
45
41
with :
46
42
command : fmt
47
43
args : --all -- --check
48
44
49
- - name : Install cargo-cranky
50
- uses : baptiste0928/cargo-install@v1
51
- with :
52
- crate : cargo-cranky
53
-
54
45
- name : Cranky
55
46
uses : actions-rs/cargo@v1
56
47
with :
@@ -93,10 +84,16 @@ jobs:
93
84
command : test
94
85
args : --all-features --lib
95
86
87
+ # ---------------------------------------------------------------------------
96
88
97
89
rs-check-wasm :
98
90
name : Check Rust web build (wasm32 + wasm-bindgen)
99
- runs-on : ubuntu-latest
91
+ runs-on : ubuntu-latest-16-cores
92
+ container :
93
+ image : rerunio/ci_docker:0.1
94
+ env :
95
+ RUSTFLAGS : ${{env.RUSTFLAGS}}
96
+ RUSTDOCFLAGS : ${{env.RUSTDOCFLAGS}}
100
97
steps :
101
98
- uses : actions/checkout@v2
102
99
@@ -107,10 +104,10 @@ jobs:
107
104
target : wasm32-unknown-unknown
108
105
override : true
109
106
110
- - run : sudo apt-get update && sudo apt-get install libgtk-3-dev
111
-
112
107
- name : Set up cargo cache
113
108
uses : Swatinem/rust-cache@v2
109
+ with :
110
+ env-vars : CARGO CC CFLAGS CXX CMAKE RUST CACHE_KEY
114
111
115
112
- name : Check re_viewer wasm32
116
113
uses : actions-rs/cargo@v1
@@ -124,62 +121,50 @@ jobs:
124
121
command : check
125
122
args : --target wasm32-unknown-unknown -p re_renderer --examples
126
123
127
- - name : wasm-bindgen
128
- uses : jetli/wasm-bindgen-action@v0.1.0
129
- with :
130
- version : " 0.2.83"
131
-
132
124
- run : ./scripts/wasm_bindgen_check.sh --skip-setup
133
125
126
+ # ---------------------------------------------------------------------------
134
127
135
128
rs-cargo-deny :
136
129
name : Check Rust dependencies (cargo-deny)
137
- runs-on : ubuntu-latest
130
+ runs-on : ubuntu-latest-16-cores
131
+ container :
132
+ image : rerunio/ci_docker:0.1
133
+ env :
134
+ RUSTFLAGS : ${{env.RUSTFLAGS}}
135
+ RUSTDOCFLAGS : ${{env.RUSTDOCFLAGS}}
138
136
steps :
139
137
- uses : actions/checkout@v2
140
138
141
- - uses : EmbarkStudios/cargo-deny-action@v1
139
+ - name : cargo deny
140
+ uses : actions-rs/cargo@v1
142
141
with :
143
- rust-version : " 1.65.0 "
144
- arguments : --log-level error
142
+ command : deny
143
+ args : --log-level= error check
145
144
145
+ # ---------------------------------------------------------------------------
146
146
147
147
rs-maturin-linux :
148
148
name : Build Rust SDK Maturin Wheel (Linux)
149
- runs-on : ubuntu-latest
149
+ runs-on : ubuntu-latest-16-cores
150
+ container :
151
+ image : rerunio/ci_docker:0.1
150
152
steps :
151
153
- uses : actions/checkout@v2
152
154
153
- - uses : actions-rs/toolchain@v1
154
- with :
155
- profile : minimal
156
- toolchain : 1.65.0
157
- override : true
158
- components : rustfmt
159
-
160
- - run : |
161
- sudo apt-get update
162
- sudo apt-get install libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libspeechd-dev libxkbcommon-dev libssl-dev # eframe reqs
163
-
164
155
- name : Set up cargo cache
165
156
uses : Swatinem/rust-cache@v2
166
-
167
- - name : Setup python for building wheel
168
- uses : actions/setup-python@v4
169
157
with :
170
- python-version : " 3.8"
171
- cache : " pip"
172
- cache-dependency-path : " rerun_py/requirements-build.txt"
173
-
174
- - run : pip install -r rerun_py/requirements-build.txt
158
+ env-vars : CARGO CC CFLAGS CXX CMAKE RUST CACHE_KEY
175
159
176
160
- name : Build wheels
177
161
run : maturin build -m rerun_py/Cargo.toml -o dist
178
162
163
+ # ---------------------------------------------------------------------------
179
164
180
165
rs-maturin-windows :
181
166
name : Build Rust SDK Maturin Wheel (Windows)
182
- runs-on : windows-latest
167
+ runs-on : windows-latest-8-cores
183
168
steps :
184
169
- uses : actions/checkout@v3
185
170
@@ -199,11 +184,12 @@ jobs:
199
184
command : build
200
185
args : -m rerun_py/Cargo.toml -o dist
201
186
187
+ # ---------------------------------------------------------------------------
202
188
203
189
rs-maturin-macos :
204
190
name : Build Rust SDK Maturin Wheel (macOS)
205
191
runs-on : macos-latest
206
- if : " startsWith(github.ref, 'refs/tags/')" # slow; uses up a lot of CI minutes
192
+ if : " startsWith(github.ref, 'refs/tags/')" # slow and uses up a lot of CI minutes (charged 10x of ubuntu!)
207
193
steps :
208
194
- uses : actions/checkout@v3
209
195
0 commit comments