engage_earn_api/ci/check-fmt.yml
Mitchell Marino fa5af76036 rustup fix
2023-01-11 23:44:03 -06:00

29 lines
517 B
YAML

platform: linux
image_resource:
type: registry-image
source: {repository: rust}
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./repo/target"
- path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs:
- name: repo
run:
path: sh
args:
- -exc
- |
rustup default stable
rustup component add rustfmt
cargo fmt --check
dir: "repo"