mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-09-30 05:15:41 +00: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
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Cache ~/.cargo/bin directory
|
- name: Cache ~/.cargo/bin directory
|
||||||
|
id: cargo-bin-cache
|
||||||
uses: actions/cache@v2.1.4
|
uses: actions/cache@v2.1.4
|
||||||
with:
|
with:
|
||||||
path: ~/.cargo/bin
|
path: ~/.cargo/bin
|
||||||
key: ubuntu-rust-${{ env.RUST_TOOLCHAIN }}-cargo-bin-directory-v1
|
key: ubuntu-rust-${{ env.RUST_TOOLCHAIN }}-cargo-bin-directory-v1
|
||||||
|
|
||||||
- name: Install tomlfmt
|
- 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
|
- name: Check Cargo.toml formatting
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user