Files
act-runner-example/.github/workflows/cache.yaml
gitea_1-h.cc d0151f39f4
All checks were successful
/ test-timezone (push) Successful in 8s
/ opt_hostedtoolcache (push) Successful in 8s
/ Cache-Java-Test (push) Successful in 5s
/ job1 (push) Successful in 7s
/ job3 (push) Has been skipped
/ job2 (push) Successful in -19s
/ hashFiles (push) Successful in -17s
/ go-hashfiles (push) Successful in 13s
更新 .github/workflows/cache.yaml
2025-01-13 10:55:28 +08:00

22 lines
571 B
YAML

on:
push:
jobs:
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
- run: ls -lha /opt/hostedtoolcache/node || true
- run: ls -lha /opt/hostedtoolcache/pnpm-store || true
- run: env
# https://about.gitea.com/resources/tutorials/enable-gitea-actions-cache-to-accelerate-cicd$0