Skip to content

Commit 03e6375

Browse files
committed
ci: use the gradle build cache to speed up builds
1 parent 31a340e commit 03e6375

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ jobs:
2121
distribution: 'temurin'
2222
java-version: '11'
2323
- name: Build
24+
uses: gradle/gradle-build-action@v2
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
run: ./gradlew build publishToMavenLocal -PciBuild=true
27+
with:
28+
arguments: |
29+
--build-cache
30+
build
31+
publishToMavenLocal
32+
-PciBuild=true
2733
- name: Test Model API Generator Gradle Plugin
2834
env:
2935
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)