File tree Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Expand file tree Collapse file tree 2 files changed +33
-14
lines changed Original file line number Diff line number Diff line change 45
45
cache : ' sbt'
46
46
cache-dependency-path : build.sbt
47
47
48
+ - name : Build with Maven
49
+ if : matrix.build-system == 'maven'
50
+ run : mvn -B package --file pom.xml
51
+
52
+ - name : Build with Gradle
53
+ if : matrix.build-system == 'gradle'
54
+ run : ./gradlew build --no-daemon
55
+
56
+ - name : Build with SBT
57
+ if : matrix.build-system == 'sbt'
58
+ run : sbt package
59
+
48
60
- name : Verify Java version
49
61
run : java -version
Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- sapMachine
7
-
8
7
workflow_dispatch :
9
8
10
9
jobs :
@@ -15,20 +14,28 @@ jobs:
15
14
os : [ubuntu-latest, windows-latest, macos-latest]
16
15
cache : ['maven']
17
16
steps :
18
- - name : Checkout code
19
- uses : actions/checkout@v4
17
+ - name : Checkout code
18
+ uses : actions/checkout@v4
19
+
20
+ - name : Set up Java
21
+ uses : gowridurgad/setup-java-fork@testing-snap
22
+ with :
23
+ distribution : ' sapmachine'
24
+ java-version : ' 21'
25
+ cache : ${{ matrix.cache }}
20
26
21
- - name : Set up Java
22
- uses : gowridurgad/setup-java-fork@testing-snap
23
- with :
24
- distribution : ' sapmachine'
25
- java-version : ' 21'
26
- cache : ${{ matrix.cache }}
27
+ - name : Build with Maven
28
+ if : matrix.build-system == 'maven'
29
+ run : mvn -B package --file pom.xml
27
30
28
- - name : Build with Maven
29
- run : mvn -B package --file pom.xml
31
+ - name : Build with Gradle
32
+ if : matrix.build-system == 'gradle'
33
+ run : ./gradlew build --no-daemon
30
34
31
- - name : Verify Java version
32
- run : java -version
35
+ - name : Build with SBT
36
+ if : matrix.build-system == 'sbt'
37
+ run : sbt package
33
38
34
-
39
+ - name : Verify Java version
40
+ run : java -version
41
+
You can’t perform that action at this time.
0 commit comments