|
7 | 7 |
|
8 | 8 | env: |
9 | 9 | CARGO_TERM_COLOR: always |
| 10 | + # Avoid the async-drop query cycle in sqlx-core on nightly 2026-11-01. |
| 11 | + MIPS_TOOLCHAIN: nightly-2026-01-15 |
10 | 12 |
|
11 | 13 | defaults: |
12 | 14 | run: |
@@ -187,16 +189,16 @@ jobs: |
187 | 189 | if [[ $TARGET =~ ^mips.*$ ]]; then |
188 | 190 | cd /opt/musl_gcc/${URL}-cross/lib/gcc/${URL}/11.2.1 |
189 | 191 | cp libgcc_eh.a libunwind.a |
190 | | - rustup toolchain install nightly-x86_64-unknown-linux-gnu |
191 | | - rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu |
192 | | - RUST_LIB_SRC=$HOME/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/ |
| 192 | + rustup toolchain install "$MIPS_TOOLCHAIN" --profile minimal --component rust-src |
| 193 | + RUST_LIB_SRC="$(rustc +"$MIPS_TOOLCHAIN" --print sysroot)/lib/rustlib/src/rust" |
193 | 194 | if [[ -f $RUST_LIB_SRC/library/Cargo.lock && ! -f $RUST_LIB_SRC/Cargo.lock ]]; then |
194 | 195 | cp -f $RUST_LIB_SRC/library/Cargo.lock $RUST_LIB_SRC/Cargo.lock |
195 | 196 | fi |
196 | 197 | fi |
197 | 198 | rustup -V |
198 | 199 | |
199 | 200 | # some additional configuration for cross-compilation on linux |
| 201 | + mkdir -p ~/.cargo |
200 | 202 | cat >>~/.cargo/config.toml <<EOF |
201 | 203 | [target.x86_64-unknown-linux-musl] |
202 | 204 | rustflags = ["-C", "target-feature=+crt-static","-C", "strip=symbols"] |
@@ -247,7 +249,7 @@ jobs: |
247 | 249 | if: ${{ ! endsWith(matrix.TARGET, 'freebsd') }} |
248 | 250 | run: | |
249 | 251 | if [[ $TARGET =~ ^mips.*$ ]]; then |
250 | | - cargo +nightly build --release --verbose --target $TARGET -Z build-std=std,panic_abort |
| 252 | + cargo +"$MIPS_TOOLCHAIN" build --release --verbose --target $TARGET -Z build-std=std,panic_abort |
251 | 253 | else |
252 | 254 | cargo build --release --verbose --target $TARGET |
253 | 255 | fi |
|
0 commit comments