File tree Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Expand file tree Collapse file tree 2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Java CI
1
+ name : Build with Scala 2.11
2
2
3
3
on :
4
4
push :
@@ -12,17 +12,17 @@ jobs:
12
12
13
13
steps :
14
14
- uses : actions/checkout@v2
15
- - name : Set up JDK 1. 8
15
+ - name : Set up JDK 8
16
16
uses : actions/setup-java@v1
17
17
with :
18
- java-version : 1. 8
18
+ java-version : 8
19
19
- name : Cache Maven packages
20
20
uses : actions/cache@v2
21
21
with :
22
22
path : ~/.m2
23
23
key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
24
24
restore-keys : ${{ runner.os }}-m2
25
25
- name : Build with Maven
26
- run : mvn -B package --file pom.xml
26
+ run : ./mvnw -B package --file pom.xml -Pscala-2.11
27
27
28
28
# vim: ts=2:sts=2:sw=2:expandtab
Original file line number Diff line number Diff line change
1
+ name : Build with Scala 2.12
2
+
3
+ on :
4
+ push :
5
+ branches : ' *'
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up JDK 11
16
+ uses : actions/setup-java@v1
17
+ with :
18
+ distributions : adopt
19
+ java-version : 11
20
+ check-latest : true
21
+ - name : Cache Maven packages
22
+ uses : actions/cache@v2
23
+ with :
24
+ path : ~/.m2
25
+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26
+ restore-keys : ${{ runner.os }}-m2
27
+ - name : Build with Maven
28
+ run : ./mvnw -B package --file pom.xml -Pscala-2.12
29
+
30
+ # vim: ts=2:sts=2:sw=2:expandtab
You can’t perform that action at this time.
0 commit comments