Skip to content

Commit d050fcf

Browse files
author
Mikhail Zabaluev
authored
Merge pull request #398 from input-output-hk/make-cargo-fmt-fast-again
Make cargo fmt fast again
2 parents 6584eb8 + 4e352b0 commit d050fcf

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,19 +143,22 @@ jobs:
143143
components: rustfmt, clippy
144144
override: true
145145

146+
- name: Restore cargo registry index
147+
uses: actions/cache@v1
148+
with:
149+
path: ~/.cargo/registry/index
150+
key: cargo-index-v1-${{ needs.update-deps.outputs.crates-io-index-head }}
151+
152+
- name: Print rustfmt version
153+
run: rustfmt --version
154+
146155
- name: Run cargo fmt
147156
uses: actions-rs/cargo@v1
148157
continue-on-error: false
149158
with:
150159
command: fmt
151160
args: --all -- --check
152161

153-
- name: Restore cargo registry index
154-
uses: actions/cache@v1
155-
with:
156-
path: ~/.cargo/registry/index
157-
key: cargo-index-v1-${{ needs.update-deps.outputs.crates-io-index-head }}
158-
159162
- name: Restore dependency crates
160163
uses: actions/cache@v1
161164
with:

0 commit comments

Comments
 (0)