mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-25 23:06:00 -05:00
Upgrade to actions/cache@v2.1.4
Usually, we can follow the rolling major tag (@v2) of actions. However the recent release (2.1.4) is not yet included. See https://github.com/actions/cache/issues/528 for more details. We do want to depend on 2.1.4 because it contains a fix that allows us to use the cache action MacOS. v2 also features better compression and allows for multiple paths to be specified.
This commit is contained in:
parent
f1b097877b
commit
a3b5c13b52
52
.github/workflows/ci.yml
vendored
52
.github/workflows/ci.yml
vendored
@ -23,7 +23,7 @@ jobs:
|
|||||||
components: rustfmt, clippy
|
components: rustfmt, clippy
|
||||||
|
|
||||||
- name: Cache ~/.cargo/bin directory
|
- name: Cache ~/.cargo/bin directory
|
||||||
uses: actions/cache@v1
|
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
|
||||||
@ -67,18 +67,13 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Cache target directory
|
- name: Cache target and registry directory
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2.1.4
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
with:
|
with:
|
||||||
path: target
|
path: |
|
||||||
key: rust-${{ matrix.target }}-target-directory-build-${{ hashFiles('Cargo.lock') }}-v1
|
target
|
||||||
|
~/.cargo/registry
|
||||||
- name: Cache ~/.cargo/registry directory
|
key: rust-${{ matrix.target }}-build-${{ hashFiles('Cargo.lock') }}-v1
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/registry
|
|
||||||
key: rust-${{ matrix.target }}-cargo-registry-directory-${{ hashFiles('Cargo.lock') }}-v1
|
|
||||||
|
|
||||||
- name: Build binary
|
- name: Build binary
|
||||||
run: |
|
run: |
|
||||||
@ -119,18 +114,13 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Cache target directory
|
- name: Cache target and registry directory
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2.1.4
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
with:
|
with:
|
||||||
path: target
|
path: |
|
||||||
key: rust-${{ matrix.target }}-target-directory-test-${{ hashFiles('Cargo.lock') }}-v1
|
target
|
||||||
|
~/.cargo/registry
|
||||||
- name: Cache ~/.cargo/registry directory
|
key: rust-${{ matrix.target }}-test-${{ hashFiles('Cargo.lock') }}-v1
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/registry
|
|
||||||
key: rust-${{ matrix.target }}-cargo-registry-directory-${{ hashFiles('Cargo.lock') }}-v1
|
|
||||||
|
|
||||||
- name: Build tests
|
- name: Build tests
|
||||||
run: cargo build --tests --workspace --all-features
|
run: cargo build --tests --workspace --all-features
|
||||||
@ -166,17 +156,13 @@ jobs:
|
|||||||
profile: minimal
|
profile: minimal
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Cache target directory
|
- name: Cache target and registry directory
|
||||||
uses: actions/cache@v1
|
uses: actions/cache@v2.1.4
|
||||||
with:
|
with:
|
||||||
path: target
|
path: |
|
||||||
key: rust-${{ matrix.target }}-target-directory-test-${{ hashFiles('Cargo.lock') }}-v1
|
target
|
||||||
|
~/.cargo/registry
|
||||||
- name: Cache ~/.cargo/registry directory
|
key: rust-${{ matrix.target }}-test-${{ hashFiles('Cargo.lock') }}-v1
|
||||||
uses: actions/cache@v1
|
|
||||||
with:
|
|
||||||
path: ~/.cargo/registry
|
|
||||||
key: rust-${{ env.TARGET }}-cargo-registry-directory-${{ hashFiles('Cargo.lock') }}-v1
|
|
||||||
|
|
||||||
- name: Run test ${{ matrix.test_name }}
|
- name: Run test ${{ matrix.test_name }}
|
||||||
run: cargo test --package swap --all-features --test ${{ matrix.test_name }} ""
|
run: cargo test --package swap --all-features --test ${{ matrix.test_name }} ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user