mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-11 07:29:39 -05:00
Only install tomlfmt if we don't have ~/.cargo/bin cached
This commit is contained in:
parent
a3b5c13b52
commit
8072f4d7ee
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -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…
Reference in New Issue
Block a user