Skip to content
Snippets Groups Projects
Unverified Commit 7db95d48 authored by Shaopeng Wang's avatar Shaopeng Wang Committed by GitHub
Browse files

Github actions cache v2. (#198)

* Github actions cache v2.

* Has no cargo lock file.
parent 149470a2
No related branches found
No related tags found
No related merge requests found
...@@ -10,16 +10,14 @@ jobs: ...@@ -10,16 +10,14 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Cache cargo registry - name: Cache cargo
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: |
key: ${{ runner.os }}-cargo-registry ~/.cargo/registry
- name: Cache cargo index ~/.cargo/git
uses: actions/cache@v1 target
with: key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index
- name: Install toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
......
...@@ -13,16 +13,14 @@ jobs: ...@@ -13,16 +13,14 @@ jobs:
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Cache cargo registry - name: Cache cargo
uses: actions/cache@v1 uses: actions/cache@v2
with: with:
path: ~/.cargo/registry path: |
key: ${{ runner.os }}-cargo-registry ~/.cargo/registry
- name: Cache cargo index ~/.cargo/git
uses: actions/cache@v1 target
with: key: ${{ runner.os }}-cargo
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index
- name: Install toolchain - name: Install toolchain
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment