CI: Break out some fastish Rust checks into new "build" step
This commit is contained in:
parent
9a8d75b844
commit
d65c0023c5
|
@ -36,16 +36,13 @@ maint-checks:
|
||||||
- ./maint/check_toposort
|
- ./maint/check_toposort
|
||||||
- ./maint/add_warning --check crates/*/src/{lib,main}.rs
|
- ./maint/add_warning --check crates/*/src/{lib,main}.rs
|
||||||
|
|
||||||
rust-latest:
|
rust-checks:
|
||||||
|
# This is too slow (and the cacheing of the "cargo build" too flaky) to be a "check"
|
||||||
stage: build
|
stage: build
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
script:
|
script:
|
||||||
- rustup show
|
- rustup show
|
||||||
- cargo build --locked --verbose --target x86_64-unknown-linux-gnu
|
- rustup component add rustfmt
|
||||||
- cargo test --verbose --target x86_64-unknown-linux-gnu
|
|
||||||
- rustup component add clippy rustfmt
|
|
||||||
- rustup show
|
|
||||||
- cargo clippy --all-features --all-targets -- -D warnings
|
|
||||||
- cargo fmt -- --check
|
- cargo fmt -- --check
|
||||||
- cp cargo-license $CARGO_HOME/bin/ || cargo install cargo-license
|
- cp cargo-license $CARGO_HOME/bin/ || cargo install cargo-license
|
||||||
- ./maint/check_licenses
|
- ./maint/check_licenses
|
||||||
|
@ -55,12 +52,23 @@ rust-latest:
|
||||||
- cp cargo-sort $CARGO_HOME/bin/ || cargo install cargo-sort
|
- cp cargo-sort $CARGO_HOME/bin/ || cargo install cargo-sort
|
||||||
- ./maint/cargo_sort
|
- ./maint/cargo_sort
|
||||||
- cp $CARGO_HOME/bin/cargo-sort .
|
- cp $CARGO_HOME/bin/cargo-sort .
|
||||||
- cargo build --verbose --release -p arti-bench --target x86_64-unknown-linux-gnu
|
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- cargo-audit
|
- cargo-audit
|
||||||
- cargo-sort
|
- cargo-sort
|
||||||
- cargo-license
|
- cargo-license
|
||||||
|
|
||||||
|
rust-latest:
|
||||||
|
stage: build
|
||||||
|
image: rust:latest
|
||||||
|
script:
|
||||||
|
- rustup show
|
||||||
|
- cargo build --locked --verbose --target x86_64-unknown-linux-gnu
|
||||||
|
- cargo test --verbose --target x86_64-unknown-linux-gnu
|
||||||
|
- rustup component add clippy
|
||||||
|
- rustup show
|
||||||
|
- cargo clippy --all-features --all-targets -- -D warnings
|
||||||
|
- cargo build --verbose --release -p arti-bench --target x86_64-unknown-linux-gnu
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- target/x86_64-unknown-linux-gnu/debug/arti
|
- target/x86_64-unknown-linux-gnu/debug/arti
|
||||||
|
|
Loading…
Reference in New Issue