From 6dea1514947ad02593b3cc50f4c4064e66fba865 Mon Sep 17 00:00:00 2001 From: yuangongji Date: Sun, 22 Mar 2020 18:35:24 +0800 Subject: [PATCH] github workflows: ignore previous cache modify the cache key to ignore previous cache for the changes of configure.ac/CMakeLists.txt to take effect. --- .github/workflows/coverage.yml | 2 +- .github/workflows/linux.yml | 4 ++-- .github/workflows/macos.yml | 4 ++-- .github/workflows/mingw.yml | 2 +- .github/workflows/windows.yml | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3a34fbe5..c296e44e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -21,7 +21,7 @@ jobs: uses: actions/cache@v1.0.3 with: path: build - key: ${{ matrix.os }}-coverage + key: ${{ matrix.os }}-coverage-v2 - name: Install Depends run: sudo apt install zlib1g-dev libssl-dev build-essential lcov diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a9bf4220..6b1d0dd4 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -41,7 +41,7 @@ jobs: uses: actions/cache@v1.1.0 with: path: build - key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }} + key: ${{ matrix.os }}-cmake-${{ matrix.EVENT_MATRIX }}-v2 - name: Build And Test shell: bash @@ -115,7 +115,7 @@ jobs: uses: actions/cache@v1.1.0 with: path: build - key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }} + key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v2 - name: Build And Test shell: bash diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index fc5c3703..9363f50e 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -42,7 +42,7 @@ jobs: uses: actions/cache@v1.1.0 with: path: build - key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }} + key: macos-10.15-cmake-${{ matrix.EVENT_MATRIX }}-v2 - name: Build And Test shell: bash @@ -119,7 +119,7 @@ jobs: uses: actions/cache@v1.1.0 with: path: build - key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }} + key: ${{ matrix.os }}-autotools-${{ matrix.EVENT_MATRIX }}-v2 - name: Install Depends run: brew install autoconf automake libtool pkg-config diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 80cdf8ba..05a79357 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -45,7 +45,7 @@ jobs: uses: actions/cache@v1.1.2 with: path: build - key: mingw-${{ matrix.EVENT_MATRIX }} + key: mingw-autotools-${{ matrix.EVENT_MATRIX }} - uses: numworks/setup-msys2@v1 if: steps.cache-mingw.outputs.cache-hit != 'true' diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 9eea22f9..ffea2b12 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -41,7 +41,7 @@ jobs: uses: actions/cache@v1.0.3 with: path: build - key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }} + key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-v2 - name: Install Depends if: steps.cache-depends.outputs.cache-hit != 'true' @@ -152,7 +152,7 @@ jobs: uses: actions/cache@v1.1.0 with: path: build - key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-build + key: ${{ matrix.os }}-${{ matrix.EVENT_MATRIX }}-build-v2 - name: Install Depends if: steps.cache-depends.outputs.cache-hit != 'true' -- 2.40.0