try setting up build cache

This commit is contained in:
Alula 2020-09-22 22:48:19 +02:00
parent 5712f103af
commit c34facc9b2
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 48 additions and 0 deletions

View File

@ -10,6 +10,30 @@ jobs:
- name: Install dependencies
run: sudo apt-get install libasound2-dev libudev-dev pkg-config
- name: Cache Cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-stable-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-cargo-registry-
- name: Cache Cargo index
uses: actions/cache@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-stable-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-cargo-index-
- name: Cache Cargo build
uses: actions/cache@v2
with:
path: target/release
key: ${{ runner.os }}-stable-debug-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-debug-target-
- name: Checkout sources
uses: actions/checkout@v2
@ -57,6 +81,30 @@ jobs:
runs-on: windows-latest
steps:
- name: Cache Cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-stable-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-cargo-registry-
- name: Cache Cargo index
uses: actions/cache@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-stable-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-cargo-index-
- name: Cache Cargo build
uses: actions/cache@v2
with:
path: target/release
key: ${{ runner.os }}-stable-debug-target-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-stable-debug-target-
- name: Checkout sources
uses: actions/checkout@v2