Skip to content

Commit a8ef268

Browse files
committed
use cache
1 parent 54e7d18 commit a8ef268

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ jobs:
2222
distribution: 'temurin'
2323
java-version: '21'
2424

25+
- name: Cache Gradle dependencies
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.gradle/caches
30+
~/.gradle/wrapper
31+
key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
32+
restore-keys: |
33+
gradle-${{ runner.os }}-
34+
2535
- name: List root directory (debug)
2636
run: ls -l
2737

@@ -32,13 +42,15 @@ jobs:
3242
run: ls -l .
3343

3444
- name: Build with Gradle
35-
run: ./gradlew clean build
45+
run: ./gradlew build --parallel --build-cache
3646

3747
- name: List build/libs directory (debug)
3848
run: ls -l build/libs || echo "No JAR built"
3949

40-
- name: Run insert command
41-
run: java -jar build/libs/pdiff-all.jar insert -u [email protected]
50+
- name: Move input and run insert
51+
run: |
52+
mv input raw
53+
java -jar build/libs/pdiff-all.jar insert -u [email protected]
4254
4355
- name: Upload JAR Artifact
4456
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)