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
---
# inspiration:
# - [Tips for Faster Rust CI Builds | corrode Rust Consulting](https://corrode.dev/blog/tips-for-faster-ci-builds/)
name: ci
on:
# pull_request:
# branches:
# - "!release-plz-*"
push:
branches-ignore:
- "release-plz-**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
# "ubuntu-22.04-arm" vs "ubuntu-latest"
# - faster? (not sure 10min for both with cold cache, and 4min (+1min) for arm on 90% cache'hit)
# - fewer available => longer "queued times"
runs-on: "ubuntu-latest"
env:
CARGO_TERM_COLOR: always
# to help debug on failure (maybe conflict with disable of test debug)
RUST_BACKTRACE: full
# reduce size of target (good for caching)
CARGO_PROFILE_TEST_DEBUG: 0
# disable incremental compilation faster from-scratch builds & sccache
CARGO_INCREMENTAL: 0
# configure sccache to cache the build artifacts (on github caches)
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v5
- uses: mozilla-actions/sccache-action@v0.0.9
- uses: jdx/mise-action@v2
with:
# version 2025.5.11, a symlink is created for rust setup
# without cache, missing components are installed
# with cache, nothing is installed, but as rust tool is symlinked, it is not cached => missing components failure
cache: false
- run: mise run --jobs 1 ci
shell: bash
- run: ${SCCACHE_PATH} --show-stats
shell: bash