添加 Java 缓存工作流并更新 Go 哈希文件工作流配置
All checks were successful
/ job1 (push) Successful in 8s
/ job2 (push) Successful in 9s
/ job3 (push) Has been skipped
/ go-hashfiles (push) Successful in 22s
/ hashFiles (push) Successful in 8s
/ Cache-Java-Test (push) Successful in 1m21s
/ opt_hostedtoolcache (push) Successful in 7s
All checks were successful
/ job1 (push) Successful in 8s
/ job2 (push) Successful in 9s
/ job3 (push) Has been skipped
/ go-hashfiles (push) Successful in 22s
/ hashFiles (push) Successful in 8s
/ Cache-Java-Test (push) Successful in 1m21s
/ opt_hostedtoolcache (push) Successful in 7s
This commit is contained in:
11
.github/workflows/cache.yaml
vendored
11
.github/workflows/cache.yaml
vendored
@ -2,7 +2,16 @@ on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
job1:
|
||||
Cache-Java-Test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: "adopt"
|
||||
java-version: 17
|
||||
- run: java -version
|
||||
opt_hostedtoolcache:
|
||||
needs: [Cache-Java-Test]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: ls -lha /opt/hostedtoolcache
|
||||
|
2
.github/workflows/hashFiles.yaml
vendored
2
.github/workflows/hashFiles.yaml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
# Setup the Go environment. This step can be skipped if Go has been installed.
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
go-version: "1.20"
|
||||
|
||||
- uses: https://gitea.com/actions/go-hashfiles@main
|
||||
id: get-hash
|
||||
|
Reference in New Issue
Block a user