|
1 |
| -name: "Checks: Lints, Tests, Docs" |
| 1 | +name: "General checks: Lints, Tests, Docs" |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | workflow_call:
|
5 | 5 | inputs:
|
6 | 6 | CONCURRENCY:
|
7 | 7 | required: true
|
8 | 8 | type: string
|
9 |
| - SAVE_PY_DOCS: |
10 |
| - required: false |
11 |
| - type: boolean |
12 |
| - default: false |
13 |
| - SAVE_PY_DOCS_AS: |
14 |
| - required: false |
15 |
| - type: string |
16 |
| - default: "" |
17 |
| - SAVE_RUST_DOCS: |
18 |
| - required: false |
19 |
| - type: boolean |
20 |
| - default: false |
21 |
| - PR_NUMBER: |
22 |
| - required: false |
23 |
| - type: string |
24 |
| - default: "" |
25 |
| - ALL_CHECKS: |
26 |
| - required: false |
27 |
| - type: boolean |
28 |
| - default: false |
29 | 9 |
|
30 | 10 | concurrency:
|
31 | 11 | group: ${{ inputs.CONCURRENCY }}-checks
|
@@ -154,100 +134,6 @@ jobs:
|
154 | 134 | run: |
|
155 | 135 | pixi run codegen --force --check
|
156 | 136 |
|
157 |
| - rs-lints: |
158 |
| - name: Rust lints (fmt, check, cranky, tests, doc) |
159 |
| - runs-on: ubuntu-latest-16-cores |
160 |
| - container: |
161 |
| - image: rerunio/ci_docker:0.11.0 |
162 |
| - env: |
163 |
| - RUSTC_WRAPPER: "sccache" |
164 |
| - steps: |
165 |
| - - uses: actions/checkout@v4 |
166 |
| - with: |
167 |
| - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} |
168 |
| - |
169 |
| - - name: Set up Rust |
170 |
| - uses: ./.github/actions/setup-rust |
171 |
| - with: |
172 |
| - cache_key: "build-linux" |
173 |
| - save_cache: true |
174 |
| - workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} |
175 |
| - service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} |
176 |
| - |
177 |
| - # We need to build the web viewer for `rust_checks.py` to succeed. |
178 |
| - - name: Build web-viewer (release) |
179 |
| - uses: actions-rs/cargo@v1 |
180 |
| - with: |
181 |
| - command: run |
182 |
| - # We build in release so that we can reuse the results for actual publishing, if necessary |
183 |
| - args: --locked -p re_build_web_viewer -- --release |
184 |
| - |
185 |
| - - name: Rust checks & tests |
186 |
| - if: ${{ !inputs.ALL_CHECKS }} |
187 |
| - run: ./scripts/ci/rust_checks.py --skip-check-individual-crates |
188 |
| - |
189 |
| - - name: Rust all checks & tests |
190 |
| - if: inputs.ALL_CHECKS |
191 |
| - run: ./scripts/ci/rust_checks.py |
192 |
| - |
193 |
| - # --------------------------------------------------------------------------- |
194 |
| - |
195 |
| - rs-check-wasm: |
196 |
| - name: Check Rust web build (wasm32 + wasm-bindgen) |
197 |
| - runs-on: ubuntu-latest-16-cores |
198 |
| - container: |
199 |
| - image: rerunio/ci_docker:0.11.0 |
200 |
| - env: |
201 |
| - RUSTC_WRAPPER: "sccache" |
202 |
| - steps: |
203 |
| - - uses: actions/checkout@v4 |
204 |
| - with: |
205 |
| - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} |
206 |
| - |
207 |
| - - name: Set up Rust |
208 |
| - uses: ./.github/actions/setup-rust |
209 |
| - with: |
210 |
| - cache_key: "build-web" |
211 |
| - save_cache: true |
212 |
| - workload_identity_provider: ${{ secrets.GOOGLE_WORKLOAD_IDENTITY_PROVIDER }} |
213 |
| - service_account: ${{ secrets.GOOGLE_SERVICE_ACCOUNT }} |
214 |
| - |
215 |
| - - name: clippy check re_viewer wasm32 |
216 |
| - shell: bash |
217 |
| - run: ./scripts/clippy_wasm.sh |
218 |
| - |
219 |
| - - name: Check re_renderer examples wasm32 |
220 |
| - uses: actions-rs/cargo@v1 |
221 |
| - with: |
222 |
| - command: check |
223 |
| - args: --locked --target wasm32-unknown-unknown --target-dir target_wasm -p re_renderer --examples |
224 |
| - |
225 |
| - - name: Build web-viewer (release) |
226 |
| - uses: actions-rs/cargo@v1 |
227 |
| - with: |
228 |
| - command: run |
229 |
| - # We build in release so that we can reuse the results for actual publishing, if necessary |
230 |
| - args: --locked -p re_build_web_viewer -- --release |
231 |
| - |
232 |
| - # --------------------------------------------------------------------------- |
233 |
| - |
234 |
| - toml-lints: |
235 |
| - name: Lint TOML files |
236 |
| - runs-on: ubuntu-latest |
237 |
| - steps: |
238 |
| - - uses: actions/checkout@v4 |
239 |
| - with: |
240 |
| - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} |
241 |
| - |
242 |
| - - uses: prefix-dev/setup-pixi@v0.4.1 |
243 |
| - with: |
244 |
| - pixi-version: v0.13.0 |
245 |
| - |
246 |
| - - name: Taplo check |
247 |
| - shell: bash |
248 |
| - run: | |
249 |
| - pixi run lint-taplo |
250 |
| -
|
251 | 137 | # ---------------------------------------------------------------------------
|
252 | 138 |
|
253 | 139 | misc-rerun-lints:
|
@@ -312,38 +198,6 @@ jobs:
|
312 | 198 |
|
313 | 199 | # ---------------------------------------------------------------------------
|
314 | 200 |
|
315 |
| - rs-cargo-deny: |
316 |
| - name: Cargo Deny |
317 |
| - runs-on: ubuntu-latest |
318 |
| - container: |
319 |
| - image: rerunio/ci_docker:0.11.0 |
320 |
| - steps: |
321 |
| - - uses: actions/checkout@v4 |
322 |
| - with: |
323 |
| - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} |
324 |
| - |
325 |
| - - name: Cargo Deny |
326 |
| - shell: bash |
327 |
| - id: expected_version |
328 |
| - run: ./scripts/ci/cargo_deny.sh |
329 |
| - |
330 |
| - # --------------------------------------------------------------------------- |
331 |
| - |
332 |
| - cpp-formatting: |
333 |
| - name: C++ formatting check |
334 |
| - runs-on: ubuntu-latest |
335 |
| - steps: |
336 |
| - - uses: actions/checkout@v4 |
337 |
| - with: |
338 |
| - ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.ref || '' }} |
339 |
| - |
340 |
| - - name: Run clang format on all relevant files |
341 |
| - uses: jidicula/clang-format-action@v4.11.0 |
342 |
| - with: |
343 |
| - clang-format-version: "16" |
344 |
| - # Only check c/cpp/h/hpp (default checks also .proto and others) |
345 |
| - include-regex: ^.*\.(c|cpp|h|hpp)$ |
346 |
| - |
347 | 201 | misc-formatting:
|
348 | 202 | name: Misc formatting
|
349 | 203 | runs-on: ubuntu-latest
|
|
0 commit comments