Skip to content

Commit

Permalink
升级actions/cache@v3 to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
ha2556 committed Apr 10, 2024
1 parent afe59a9 commit a464741
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/benchmark-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
path: dubbo
- name: "Dubbo cache"
id: dubbo-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache local Maven repository"
if: steps.dubbo-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -95,26 +95,26 @@ jobs:
repository: 'wxbty/dubbo-samples'
ref: bh-test
- name: "Cache local Maven repository"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Restore Dubbo cache"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache Skywalking Agent"
id: cache-skywalking-agent
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/skywalking-agent
key: ${{ runner.os }}-skywalking-agent-9.0.0
- name: "Cache MySQL Driver"
id: cache-mysql-driver
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/mysql-connector-java-8.0.23.jar
key: ${{ runner.os }}-mysql-driver-8.0.23
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/benchmark-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ jobs:
path: dubbo
- name: "Dubbo cache"
id: dubbo-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache local Maven repository"
if: steps.dubbo-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -96,26 +96,26 @@ jobs:
repository: 'wxbty/dubbo-samples'
ref: bh-test
- name: "Cache local Maven repository"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Restore Dubbo cache"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache Skywalking Agent"
id: cache-skywalking-agent
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/skywalking-agent
key: ${{ runner.os }}-skywalking-agent-9.0.0
- name: "Cache MySQL Driver"
id: cache-mysql-driver
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/mysql-connector-java-8.0.23.jar
key: ${{ runner.os }}-mysql-driver-8.0.23
Expand Down Expand Up @@ -241,26 +241,26 @@ jobs:
repository: 'wxbty/dubbo-samples'
ref: bh-test
- name: "Cache local Maven repository"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Restore Dubbo cache"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache Skywalking Agent"
id: cache-skywalking-agent
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/skywalking-agent
key: ${{ runner.os }}-skywalking-agent-9.0.0
- name: "Cache MySQL Driver"
id: cache-mysql-driver
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/mysql-connector-java-8.0.23.jar
key: ${{ runner.os }}-mysql-driver-8.0.23
Expand Down Expand Up @@ -397,26 +397,26 @@ jobs:
repository: 'wxbty/dubbo-samples'
ref: bh-test
- name: "Cache local Maven repository"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Restore Dubbo cache"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache Skywalking Agent"
id: cache-skywalking-agent
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/skywalking-agent
key: ${{ runner.os }}-skywalking-agent-9.0.0
- name: "Cache MySQL Driver"
id: cache-mysql-driver
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/mysql-connector-java-8.0.23.jar
key: ${{ runner.os }}-mysql-driver-8.0.23
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/trigger-sample-benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
path: dubbo
- name: "Dubbo cache"
id: dubbo-cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache local Maven repository"
if: steps.dubbo-cache.outputs.cache-hit != 'true'
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -95,26 +95,26 @@ jobs:
repository: 'wxbty/dubbo-samples'
ref: bh-test
- name: "Cache local Maven repository"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: "Restore Dubbo cache"
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.m2/repository/org/apache/dubbo
key: ${{ runner.os }}-dubbo-snapshot-${{ github.sha }}
- name: "Cache Skywalking Agent"
id: cache-skywalking-agent
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/skywalking-agent
key: ${{ runner.os }}-skywalking-agent-9.0.0
- name: "Cache MySQL Driver"
id: cache-mysql-driver
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/mysql-connector-java-8.0.23.jar
key: ${{ runner.os }}-mysql-driver-8.0.23
Expand Down

0 comments on commit a464741

Please sign in to comment.