Use prebuilt image for the rustfmt CI check.
This commit is contained in:
parent
3d542e5554
commit
3da503cdea
@ -39,13 +39,10 @@ stable:test:
|
|||||||
# Configure and run rustfmt on nightly
|
# Configure and run rustfmt on nightly
|
||||||
# Exits and builds fails if on bad format
|
# Exits and builds fails if on bad format
|
||||||
rustfmt:
|
rustfmt:
|
||||||
image: "rustlang/rust:nightly"
|
image: "registry.gitlab.com/alatiera/rustfmt-oci-image/rustfmt:nightly"
|
||||||
stage: lint
|
stage: lint
|
||||||
variables:
|
|
||||||
CFG_RELEASE_CHANNEL: "nightly"
|
|
||||||
script:
|
script:
|
||||||
- rustc --version && cargo --version
|
- rustc --version && cargo --version
|
||||||
- cargo install rustfmt-nightly --force
|
|
||||||
- cargo fmt --all -- --write-mode=diff
|
- cargo fmt --all -- --write-mode=diff
|
||||||
|
|
||||||
# Configure and run clippy on nightly
|
# Configure and run clippy on nightly
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user