This is an automated email from the ASF dual-hosted git repository. albumenj pushed a commit to branch 1021_fast in repository https://gitbox.apache.org/repos/asf/dubbo.git
commit b6ed8b1e38484d45f7b0fe08c106e662e8f4c8e8 Author: Albumen Kevin <[email protected]> AuthorDate: Fri Oct 21 12:23:52 2022 +0800 fix cache --- .github/workflows/build-and-test-3.2.yml | 32 +++++++++++++++++++++++++------- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-and-test-3.2.yml b/.github/workflows/build-and-test-3.2.yml index ac66dfe490..39a9cb2c33 100644 --- a/.github/workflows/build-and-test-3.2.yml +++ b/.github/workflows/build-and-test-3.2.yml @@ -41,12 +41,15 @@ jobs: name: "Cache local Maven repository" with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + ${{ runner.os }}-maven- - name: "Dubbo cache" uses: actions/cache@v2 with: path: ~/.m2/repository/org/apache/dubbo - key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} + key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}-${{ github.run_id }} - name: "Build Dubbo with Maven" run: | cd ./dubbo @@ -146,8 +149,9 @@ jobs: name: "Cache local Maven repository" with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }} restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} ${{ runner.os }}-maven- - name: "Test with Maven with Integration Tests" timeout-minutes: 70 @@ -183,9 +187,18 @@ jobs: name: "Cache local Maven repository" with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }} restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} ${{ runner.os }}-maven- + - name: "Restore Dubbo cache" + uses: actions/cache@v2 + with: + path: ~/.m2/repository/org/apache/dubbo + key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} + ${{ runner.os }}-dubbo-snapshot- - name: "Test with Maven with Integration Tests" timeout-minutes: 70 run: bash unit-test.sh @@ -215,8 +228,9 @@ jobs: name: "Cache local Maven repository" with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }} restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} ${{ runner.os }}-maven- - name: "Test with Maven with Integration Tests" timeout-minutes: 70 @@ -268,14 +282,18 @@ jobs: uses: actions/cache@v2 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.run_id }} restore-keys: | + ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} ${{ runner.os }}-maven- - name: "Restore Dubbo cache" uses: actions/cache@v2 with: path: ~/.m2/repository/org/apache/dubbo - key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} + key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}-${{ github.run_id }} + restore-keys: | + ${{ runner.os }}-dubbo-snapshot-${{ github.sha }} + ${{ runner.os }}-dubbo-snapshot- - name: "Download test list" uses: actions/download-artifact@v2 with:
