添加 Java 缓存工作流并更新 Go 哈希文件工作流配置
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