@@ -3,10 +3,11 @@ name: CI
33on :
44 workflow_dispatch :
55 push :
6- branches : [master]
6+ branches :
7+ - master
78 pull_request :
8- branches : [master]
9- merge_group :
9+ branches :
10+ - master
1011
1112permissions :
1213 contents : read
@@ -16,68 +17,33 @@ concurrency:
1617 cancel-in-progress : true
1718
1819jobs :
19- # fmt, clippy and build run on the dev toolchain, auto-installed by rustup
20- # from rust-toolchain.toml. Only the test matrix pins explicit versions.
21- fmt :
22- runs-on : ubuntu-latest
23- steps :
24- - uses : actions/checkout@v7
25- - run : cargo fmt --all --check
26-
27- clippy :
28- runs-on : ubuntu-latest
29- steps :
30- - uses : actions/checkout@v7
31- - uses : Swatinem/rust-cache@v2
32- - run : cargo clippy --all-targets --all-features -- -D warnings
33-
20+ checks :
21+ uses : ./.github/workflows/checks.yml
22+
3423 test :
3524 needs : [fmt, clippy]
3625 strategy :
3726 fail-fast : false
3827 matrix :
39- # Pinned floor (dev version from rust-toolchain.toml plus the three
40- # below it) tests the toolchains you develop and ship on; "stable" and
41- # "beta" track the moving channels. beta is allowed to fail, see
42- # continue-on-error below. Raise the pinned list and rust-toolchain.toml
43- # together by hand.
44- rust : ["stable", "beta", "1.95", "1.94", "1.93", "1.92"]
28+ # More extensive checks would be desirable, but we're running up against the g limits
29+ rust : ["stable", "beta"]
4530 env :
4631 - name : ubuntu
4732 container : " "
48- - name : debian
49- container : " debian:12"
5033 - name : arch
5134 container : " archlinux:latest"
52- - name : alpine
53- container : " rust:1-alpine"
5435 name : test (${{ matrix.env.name }} / ${{ matrix.rust }})
5536 runs-on : ubuntu-latest
56- # beta tracks the upcoming release; an upstream regression there must not
57- # block the merge queue. ci-success counts a continued job as success.
5837 continue-on-error : ${{ matrix.rust == 'beta' }}
5938 container : ${{ matrix.env.container }}
6039 env :
6140 RUSTUP_TOOLCHAIN : ${{ matrix.rust }}
6241 steps :
63- - name : Prep (debian)
64- if : matrix.env.name == 'debian'
65- run : |
66- apt-get update
67- apt-get install -y --no-install-recommends \
68- git curl ca-certificates build-essential pkg-config libssl-dev
69-
7042 - name : Prep (arch)
7143 if : matrix.env.name == 'arch'
7244 run : |
7345 pacman -Syu --noconfirm git curl base-devel openssl pkgconf
7446
75- - name : Prep (alpine)
76- if : matrix.env.name == 'alpine'
77- shell : sh
78- run : |
79- apk add --no-cache git curl ca-certificates bash nodejs musl-dev
80-
8147 - uses : actions/checkout@v7
8248
8349 # Explicit per-version install: RUSTUP_TOOLCHAIN overrides
0 commit comments