mirror of
https://github.com/Llewellynvdm/starship.git
synced 2025-01-13 10:25:33 +00:00
ci: use Swatinem/rust-cache for caching in CI (#3057)
This commit is contained in:
parent
0a60d1e939
commit
888a653c32
33
.github/workflows/workflow.yml
vendored
33
.github/workflows/workflow.yml
vendored
@ -43,15 +43,8 @@ jobs:
|
|||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Cache files between builds
|
- name: Setup | Cache
|
||||||
# - name: Setup | Cache Cargo
|
uses: Swatinem/rust-cache@v1
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/.cargo/registry
|
|
||||||
# ~/.cargo/git
|
|
||||||
# target
|
|
||||||
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Setup | libdbus (ubuntu)
|
- name: Setup | libdbus (ubuntu)
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
@ -79,15 +72,8 @@ jobs:
|
|||||||
- name: Setup | Checkout
|
- name: Setup | Checkout
|
||||||
uses: actions/checkout@v2.3.4
|
uses: actions/checkout@v2.3.4
|
||||||
|
|
||||||
# Cache files between builds
|
- name: Setup | Cache
|
||||||
# - name: Setup | Cache Cargo
|
uses: Swatinem/rust-cache@v1
|
||||||
# uses: actions/cache@v2
|
|
||||||
# with:
|
|
||||||
# path: |
|
|
||||||
# ~/.cargo/registry
|
|
||||||
# ~/.cargo/git
|
|
||||||
# target
|
|
||||||
# key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
uses: actions-rs/toolchain@v1.0.7
|
uses: actions-rs/toolchain@v1.0.7
|
||||||
@ -118,15 +104,8 @@ jobs:
|
|||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: sudo apt-get install libdbus-1-dev
|
run: sudo apt-get install libdbus-1-dev
|
||||||
|
|
||||||
# Cache files between builds
|
- name: Setup | Cache
|
||||||
- name: Setup | Cache Cargo
|
uses: Swatinem/rust-cache@v1
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/registry
|
|
||||||
~/.cargo/git
|
|
||||||
target
|
|
||||||
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
|
||||||
|
|
||||||
# Install all the required dependencies for testing
|
# Install all the required dependencies for testing
|
||||||
- name: Setup | Rust
|
- name: Setup | Rust
|
||||||
|
Loading…
Reference in New Issue
Block a user