Skip to content

Commit

Permalink
chore: fallback from nightly if compiler is broken (#12133)
Browse files Browse the repository at this point in the history
  • Loading branch information
Longarithm authored Sep 24, 2024
1 parent 70acea6 commit a033ff6
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,21 @@ check-protocol-schema:
rustup toolchain install nightly
rustup target add wasm32-unknown-unknown --toolchain nightly

# Below, we *should* have been used `cargo +nightly ...` instead of
# `RUSTC_BOOTSTRAP=1`. However, the env var appears to be more stable.
# `nightly` builds are updated daily and may be broken sometimes, e.g.
# https://github.com/rust-lang/rust/issues/130769.
#
# If there is an issue with the env var, fall back to `cargo +nightly ...`.

# Test that checker is not broken
RUSTFLAGS="--cfg enable_const_type_id" cargo +nightly test -p protocol-schema-check --profile dev-artifacts
RUSTC_BOOTSTRAP=1 RUSTFLAGS="--cfg enable_const_type_id" \
cargo test -p protocol-schema-check --profile dev-artifacts

# Run the checker
RUSTFLAGS="--cfg enable_const_type_id" \
RUSTC_BOOTSTRAP=1 RUSTFLAGS="--cfg enable_const_type_id" \
{{ with_macos_incremental }} \
cargo +nightly run -p protocol-schema-check --profile dev-artifacts
cargo run -p protocol-schema-check --profile dev-artifacts

check_build_public_libraries:
cargo check {{public_libraries}}

0 comments on commit a033ff6

Please sign in to comment.