From a6fadc0eab0af47110d7324b7312b32beeab04c9 Mon Sep 17 00:00:00 2001 From: mvlabat Date: Sun, 2 Aug 2020 12:34:57 +0300 Subject: [PATCH] Change .github workflow cache keys (for cache reset) --- .github/workflows/check_game.yml | 12 ++++++------ .github/workflows/release_game.yml | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check_game.yml b/.github/workflows/check_game.yml index 79c30a8..84458d7 100644 --- a/.github/workflows/check_game.yml +++ b/.github/workflows/check_game.yml @@ -58,10 +58,10 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - ${{ runner.os }}-cargo + cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + cache-${{ runner.os }}-cargo - name: Install Ubuntu dependencies if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt-get install gcc pkg-config openssl libasound2-dev cmake build-essential python3 libfreetype6-dev libexpat1-dev libxcb-composite0-dev libssl-dev libx11-dev @@ -97,10 +97,10 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - ${{ runner.os }}-cargo + cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + cache-${{ runner.os }}-cargo - uses: actions-rs/cargo@v1 with: command: clippy diff --git a/.github/workflows/release_game.yml b/.github/workflows/release_game.yml index 600fb23..0468739 100644 --- a/.github/workflows/release_game.yml +++ b/.github/workflows/release_game.yml @@ -56,10 +56,10 @@ jobs: ~/.cargo/registry ~/.cargo/git target - key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + key: cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} restore-keys: | - ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - ${{ runner.os }}-cargo + cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + cache-${{ runner.os }}-cargo - name: Install Ubuntu dependencies if: ${{ matrix.os == 'ubuntu-latest' }}