23 lines
278 B
YAML
23 lines
278 B
YAML
platform: linux
|
|
|
|
image_resource:
|
|
type: registry-image
|
|
source: {repository: rust}
|
|
|
|
# This should cache rustfmt
|
|
caches:
|
|
- path: "./.rustup/"
|
|
|
|
inputs:
|
|
- name: repo
|
|
|
|
run:
|
|
path: sh
|
|
args:
|
|
- -exc
|
|
- |
|
|
rustup component add rustfmt
|
|
cargo fmt -- --check
|
|
dir: "repo"
|
|
|