mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 23:21:06 +00:00
use stable rust toolchain in ci (#13830)
cargo-fmt stays on the nightly pipeline; our fmt config uses a heap of unstable features.
This commit is contained in:
@@ -148,7 +148,6 @@ build-rustdoc:
|
|||||||
variables:
|
variables:
|
||||||
SKIP_WASM_BUILD: 1
|
SKIP_WASM_BUILD: 1
|
||||||
DOC_INDEX_PAGE: "sc_service/index.html" # default redirected page
|
DOC_INDEX_PAGE: "sc_service/index.html" # default redirected page
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
|
# this variable gets overriden by "rusty-cachier environment inject", use the value as default
|
||||||
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
|
CARGO_TARGET_DIR: "$CI_PROJECT_DIR/target"
|
||||||
artifacts:
|
artifacts:
|
||||||
@@ -163,7 +162,7 @@ build-rustdoc:
|
|||||||
artifacts: false
|
artifacts: false
|
||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- time cargo +nightly doc --locked --workspace --all-features --verbose --no-deps
|
- time cargo doc --locked --workspace --all-features --verbose --no-deps
|
||||||
- rm -f $CARGO_TARGET_DIR/doc/.lock
|
- rm -f $CARGO_TARGET_DIR/doc/.lock
|
||||||
- mv $CARGO_TARGET_DIR/doc ./crate-docs
|
- mv $CARGO_TARGET_DIR/doc ./crate-docs
|
||||||
# FIXME: remove me after CI image gets nonroot
|
# FIXME: remove me after CI image gets nonroot
|
||||||
|
|||||||
@@ -61,21 +61,17 @@ cargo-clippy:
|
|||||||
needs:
|
needs:
|
||||||
- job: cargo-fmt
|
- job: cargo-fmt
|
||||||
artifacts: false
|
artifacts: false
|
||||||
variables:
|
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
extends:
|
extends:
|
||||||
- .docker-env
|
- .docker-env
|
||||||
- .test-refs
|
- .test-refs
|
||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo +nightly clippy --all-targets
|
- SKIP_WASM_BUILD=1 env -u RUSTFLAGS cargo clippy --all-targets
|
||||||
- rusty-cachier cache upload
|
- rusty-cachier cache upload
|
||||||
|
|
||||||
cargo-check-benches:
|
cargo-check-benches:
|
||||||
stage: test
|
stage: test
|
||||||
variables:
|
variables:
|
||||||
# Override to use nightly toolchain
|
|
||||||
RUSTY_CACHIER_TOOLCHAIN: "nightly"
|
|
||||||
CI_JOB_NAME: "cargo-check-benches"
|
CI_JOB_NAME: "cargo-check-benches"
|
||||||
extends:
|
extends:
|
||||||
- .docker-env
|
- .docker-env
|
||||||
@@ -105,7 +101,7 @@ cargo-check-benches:
|
|||||||
- echo "___Running benchmarks___";
|
- echo "___Running benchmarks___";
|
||||||
- case ${CI_NODE_INDEX} in
|
- case ${CI_NODE_INDEX} in
|
||||||
1)
|
1)
|
||||||
SKIP_WASM_BUILD=1 time cargo +nightly check --locked --benches --all;
|
SKIP_WASM_BUILD=1 time cargo check --locked --benches --all;
|
||||||
cargo run --locked --release -p node-bench -- ::trie::read::small --json
|
cargo run --locked --release -p node-bench -- ::trie::read::small --json
|
||||||
| tee ./artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json;
|
| tee ./artifacts/benches/$CI_COMMIT_REF_NAME-$CI_COMMIT_SHORT_SHA/::trie::read::small.json;
|
||||||
echo "___Uploading cache for rusty-cachier___";
|
echo "___Uploading cache for rusty-cachier___";
|
||||||
@@ -301,7 +297,6 @@ test-frame-examples-compile-to-wasm:
|
|||||||
- .docker-env
|
- .docker-env
|
||||||
- .test-refs
|
- .test-refs
|
||||||
variables:
|
variables:
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
# Enable debug assertions since we are running optimized builds for testing
|
# Enable debug assertions since we are running optimized builds for testing
|
||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-C debug-assertions"
|
RUSTFLAGS: "-C debug-assertions"
|
||||||
@@ -309,9 +304,9 @@ test-frame-examples-compile-to-wasm:
|
|||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- cd ./frame/examples/offchain-worker/
|
- cd ./frame/examples/offchain-worker/
|
||||||
- cargo +nightly build --locked --target=wasm32-unknown-unknown --no-default-features
|
- cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
||||||
- cd ../basic
|
- cd ../basic
|
||||||
- cargo +nightly build --locked --target=wasm32-unknown-unknown --no-default-features
|
- cargo build --locked --target=wasm32-unknown-unknown --no-default-features
|
||||||
- rusty-cachier cache upload
|
- rusty-cachier cache upload
|
||||||
|
|
||||||
test-linux-stable-int:
|
test-linux-stable-int:
|
||||||
@@ -344,8 +339,6 @@ check-tracing:
|
|||||||
needs:
|
needs:
|
||||||
- job: test-linux-stable-int
|
- job: test-linux-stable-int
|
||||||
artifacts: false
|
artifacts: false
|
||||||
variables:
|
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
extends:
|
extends:
|
||||||
- .docker-env
|
- .docker-env
|
||||||
- .test-refs
|
- .test-refs
|
||||||
@@ -353,8 +346,8 @@ check-tracing:
|
|||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
# with-tracing must be explicitly activated, we run a test to ensure this works as expected in both cases
|
# with-tracing must be explicitly activated, we run a test to ensure this works as expected in both cases
|
||||||
- time cargo +nightly test --locked --manifest-path ./primitives/tracing/Cargo.toml --no-default-features
|
- time cargo test --locked --manifest-path ./primitives/tracing/Cargo.toml --no-default-features
|
||||||
- time cargo +nightly test --locked --manifest-path ./primitives/tracing/Cargo.toml --no-default-features --features=with-tracing
|
- time cargo test --locked --manifest-path ./primitives/tracing/Cargo.toml --no-default-features --features=with-tracing
|
||||||
- rusty-cachier cache upload
|
- rusty-cachier cache upload
|
||||||
|
|
||||||
# more information about this job can be found here:
|
# more information about this job can be found here:
|
||||||
@@ -369,7 +362,6 @@ test-full-crypto-feature:
|
|||||||
- .docker-env
|
- .docker-env
|
||||||
- .test-refs
|
- .test-refs
|
||||||
variables:
|
variables:
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
# Enable debug assertions since we are running optimized builds for testing
|
# Enable debug assertions since we are running optimized builds for testing
|
||||||
# but still want to have debug assertions.
|
# but still want to have debug assertions.
|
||||||
RUSTFLAGS: "-C debug-assertions"
|
RUSTFLAGS: "-C debug-assertions"
|
||||||
@@ -377,9 +369,9 @@ test-full-crypto-feature:
|
|||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- cd primitives/core/
|
- cd primitives/core/
|
||||||
- time cargo +nightly build --locked --verbose --no-default-features --features full_crypto
|
- time cargo build --locked --verbose --no-default-features --features full_crypto
|
||||||
- cd ../application-crypto
|
- cd ../application-crypto
|
||||||
- time cargo +nightly build --locked --verbose --no-default-features --features full_crypto
|
- time cargo build --locked --verbose --no-default-features --features full_crypto
|
||||||
- rusty-cachier cache upload
|
- rusty-cachier cache upload
|
||||||
|
|
||||||
check-rustdoc:
|
check-rustdoc:
|
||||||
@@ -388,12 +380,11 @@ check-rustdoc:
|
|||||||
- .docker-env
|
- .docker-env
|
||||||
- .test-refs
|
- .test-refs
|
||||||
variables:
|
variables:
|
||||||
RUSTY_CACHIER_TOOLCHAIN: nightly
|
|
||||||
SKIP_WASM_BUILD: 1
|
SKIP_WASM_BUILD: 1
|
||||||
RUSTDOCFLAGS: "-Dwarnings"
|
RUSTDOCFLAGS: "-Dwarnings"
|
||||||
script:
|
script:
|
||||||
- rusty-cachier snapshot create
|
- rusty-cachier snapshot create
|
||||||
- time cargo +nightly doc --locked --workspace --all-features --verbose --no-deps
|
- time cargo doc --locked --workspace --all-features --verbose --no-deps
|
||||||
- rusty-cachier cache upload
|
- rusty-cachier cache upload
|
||||||
|
|
||||||
cargo-check-each-crate:
|
cargo-check-each-crate:
|
||||||
|
|||||||
Reference in New Issue
Block a user