ci: build the default graph on Rust 1.98, not 1.91
`cuprate-daemon` is a default feature, so `cargo test --locked` in the Pi CI job compiles `tapes`. That crate calls `VecDeque::pop_front_if`, stable only since 1.93. `rust:1.91-bookworm` dies with `error[E0658]: use of unstable library feature 'vec_deque_pop_if'` after the rest of the graph has already built. The Android workflows were already on 1.98 for this; ci.yml and release.yml were left on 1.91 when the feature was off, and that is no longer true. `rust-version` moves with the image. cargo checks it before features, so a 1.91 compiler must be refused up front instead of fifteen minutes into `tapes`. `--no-default-features` would still compile on 1.91; the declared floor is the default build's floor, which is what CI and `cargo build` run.
This commit is contained in:
parent
d89539e8b0
commit
7391c5b7a4
12 changed files with 53 additions and 33 deletions
|
|
@ -85,15 +85,14 @@ else:
|
|||
is `cmake` not installed?* — surfacing as Gradle's "cargo finished with
|
||||
non-zero exit value 101", which reads like a Rust error and is not one.
|
||||
`android-ci.yml` and `android-release.yml` both install it.
|
||||
5. **The Rust toolchain must be >= 1.93**, not the workspace MSRV of 1.91.
|
||||
`tapes`, a Cuprate dependency this repo cannot patch, calls
|
||||
`VecDeque::pop_front_if`, which is stable only from 1.93. On 1.91 the Android job
|
||||
compiles ~400 crates and then dies with
|
||||
5. **The Rust toolchain must be >= 1.93.** `tapes`, a Cuprate dependency this
|
||||
repo cannot patch, calls `VecDeque::pop_front_if`, which is stable only from
|
||||
1.93. On 1.91 a job compiles ~400 crates and then dies with
|
||||
`error[E0658]: use of unstable library feature 'vec_deque_pop_if'`.
|
||||
`android-ci.yml` and `android-release.yml` pin `RUST_TOOLCHAIN: "1.98"` (the
|
||||
stable release this graph is built and tested with); `ci.yml`, `release.yml` and
|
||||
the `rust-version = "1.91"` MSRV are untouched, because the feature-off workspace
|
||||
does not need the bump and moving the MSRV is a separate decision.
|
||||
`ci.yml`, `release.yml`, `android-ci.yml` and `android-release.yml` all pin
|
||||
1.98 (the stable release this graph is built and tested with), and
|
||||
`Cargo.toml` `rust-version` is `"1.98"` for the same reason: `cuprate-daemon`
|
||||
is a default feature, so the default build is the floor.
|
||||
|
||||
`:sdk:preBuild` also runs `verifyDynamicLibc`: `libonionwire_sdk.so` must have
|
||||
`libc.so` in `DT_NEEDED`. Linking the NDK's static `libc.a` instead null-derefs
|
||||
|
|
|
|||
|
|
@ -340,8 +340,8 @@ publishing. `scripts/build-android-local.sh` remains the offline fallback; it
|
|||
does not create tags.
|
||||
|
||||
The Android job image / bookworm-container story is the same as `android-ci.yml`.
|
||||
The cuprated graph is built with `RUST_TOOLCHAIN=1.98` here (workspace MSRV
|
||||
stays 1.91). Job timeout is **90** minutes on `android-release.yml` and **120**
|
||||
The cuprated graph is built with Rust 1.98 here, the same floor as `ci.yml`
|
||||
(`rust-version = "1.98"`). Job timeout is **90** minutes on `android-release.yml` and **120**
|
||||
on `android-ci.yml`.
|
||||
|
||||
## Layout
|
||||
|
|
|
|||
Loading…
Reference in a new issue