Skip to content

Commit 6164449

Browse files
TEST: cache
1 parent c9037d3 commit 6164449

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

.github/workflows/win-10-pro.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
distribution: [ 'adopt', 'zulu', 'temurin', 'corretto', 'liberica', 'oracle', 'microsoft', 'semeru', 'dragonwell', 'sapmachine', graalvm]
17-
17+
build-system: ['maven', 'gradle', 'sbt']
1818
steps:
1919
# - name: cache clear
2020
# run: |
@@ -25,13 +25,26 @@ jobs:
2525
uses: actions/checkout@v4
2626

2727
- name: Set up Java
28-
# uses: priyagupta108/setup-java@fix-windows-archive-extraction
29-
uses: actions/setup-java@main
28+
uses: priyagupta108/setup-java@fix-windows-archive-extraction
29+
# uses: actions/setup-java@main
3030
with:
3131
distribution: ${{ matrix.distribution }}
3232
java-version: '21'
33-
cache: 'gradle'
34-
33+
cache: ${{ matrix.build-system }}
34+
35+
36+
- name: Build with Maven
37+
if: matrix.build-system == 'maven'
38+
run: mvn -B package --file pom.xml
39+
40+
- name: Build with Gradle
41+
if: matrix.build-system == 'gradle'
42+
run: ./gradlew build --no-daemon
43+
44+
- name: Build with SBT
45+
if: matrix.build-system == 'sbt'
46+
run: sbt package
3547

3648
- name: Verify Java version
3749
run: java -version
50+

0 commit comments

Comments
 (0)