File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 34
34
- name : Checkout sources
35
35
uses : actions/checkout@v4
36
36
- uses : Swatinem/rust-cache@v2
37
- - uses : cachix/install-nix-action@v30
37
+ - uses : cachix/install-nix-action@v31
38
38
# Dedicated step to separate all the
39
39
# "copying path '/nix/store/...' from 'https://cache.nixos.org'."
40
40
# messages from the actual build output.
Original file line number Diff line number Diff line change @@ -87,17 +87,19 @@ jobs:
87
87
steps :
88
88
- name : Checkout sources
89
89
uses : actions/checkout@v4
90
+ - uses : cachix/install-nix-action@v31
90
91
- uses : Swatinem/rust-cache@v2
91
- - name : Install yamlfmt
92
- env :
93
- YFV : " 0.13.0"
94
- HASH : " 043e96d754a8afa4f4c5c13ffb2f3e50c6be5a70bf53292d3025abc0b42fe4ae"
95
- run : |
96
- curl -L --fail --output /tmp/yamlfmt.tar.xz https://github.com/google/yamlfmt/releases/download/v${YFV}/yamlfmt_${YFV}_Linux_x86_64.tar.gz
97
- echo "${HASH} /tmp/yamlfmt.tar.xz" | sha256sum --check
98
- tar xf /tmp/yamlfmt.tar.xz -C /usr/local/bin yamlfmt
92
+ # Dedicated step to separate all the
93
+ # "copying path '/nix/store/...' from 'https://cache.nixos.org'."
94
+ # messages from the actual build output.
95
+ - name : Prepare Nix Store
96
+ run : nix develop --command echo
97
+ # Executing this in a Nix shell ensures that all our checks run as all
98
+ # required tooling exists.
99
99
- name : Check formatting
100
- run : cargo xtask fmt --check
100
+ run : |
101
+ CMD="cargo xtask fmt --check"
102
+ nix develop --command bash -c "$CMD"
101
103
- name : Run clippy
102
104
run : |
103
105
rustup component add clippy
You can’t perform that action at this time.
0 commit comments