Only install tomlfmt if we don't have ~/.cargo/bin cached

pull/205/head
Thomas Eizinger 3 years ago
parent a3b5c13b52
commit 8072f4d7ee
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

@ -23,13 +23,15 @@ jobs:
components: rustfmt, clippy
- name: Cache ~/.cargo/bin directory
id: cargo-bin-cache
uses: actions/cache@v2.1.4
with:
path: ~/.cargo/bin
key: ubuntu-rust-${{ env.RUST_TOOLCHAIN }}-cargo-bin-directory-v1
- name: Install tomlfmt
run: which cargo-tomlfmt || cargo install cargo-tomlfmt
if: steps.cargo-bin-cache.outputs.cache-hit != 'true'
run: cargo install cargo-tomlfmt
- name: Check Cargo.toml formatting
run: |

Loading…
Cancel
Save