1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-04 09:30:49 +00:00

ci: use Swatinem/rust-cache for caching in CI (#3057)

This commit is contained in:
Milo 2021-09-21 18:34:46 +01:00 committed by GitHub
parent 0a60d1e939
commit 888a653c32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,15 +43,8 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v2.3.4
# Cache files between builds
# - name: Setup | Cache Cargo
# uses: actions/cache@v2
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Cache
uses: Swatinem/rust-cache@v1
- name: Setup | libdbus (ubuntu)
if: matrix.os == 'ubuntu-latest'
@ -79,15 +72,8 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v2.3.4
# Cache files between builds
# - name: Setup | Cache Cargo
# uses: actions/cache@v2
# with:
# path: |
# ~/.cargo/registry
# ~/.cargo/git
# target
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Cache
uses: Swatinem/rust-cache@v1
- name: Setup | Rust
uses: actions-rs/toolchain@v1.0.7
@ -118,15 +104,8 @@ jobs:
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install libdbus-1-dev
# Cache files between builds
- name: Setup | Cache Cargo
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup | Cache
uses: Swatinem/rust-cache@v1
# Install all the required dependencies for testing
- name: Setup | Rust