From c34facc9b2f0952f7f2428559ff8b452110e8c75 Mon Sep 17 00:00:00 2001 From: Alula Date: Tue, 22 Sep 2020 22:48:19 +0200 Subject: [PATCH] try setting up build cache --- .github/workflows/release.yml | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 160e88c..0a779b3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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