Skip to content

Commit

Permalink
ci: cache test
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Dec 4, 2024
1 parent baea24e commit 164049f
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
# against bad commits.

name: build
on: [pull_request, push]
on: [
pull_request,
push,
workflow_dispatch
]

jobs:
build:
Expand All @@ -16,6 +20,20 @@ jobs:
steps:
- name: checkout repository
uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.m2/repository
./.gradle
./**/.gradle
./build
./**/build
key: gradle-${{ runner.os }}
restore-keys: |
gradle-${{ runner.os }}
gradle-
- name: validate gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: setup jdk 17
Expand Down Expand Up @@ -43,5 +61,5 @@ jobs:
if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v4
with:
name: CLI
name: CLI Tools
path: cli/build/libs

0 comments on commit 164049f

Please sign in to comment.