Skip to content

Commit a9da30c

Browse files
committed
ci: Make scala 2.12 build on Java 11 and 2.11 on 8
1 parent 3f40038 commit a9da30c

File tree

2 files changed

+19
-30
lines changed

2 files changed

+19
-30
lines changed
Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build with Scala 2.12
1+
name: Build and test
22

33
on:
44
push:
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
jobs:
10-
build:
10+
build-scala-12:
1111
runs-on: ubuntu-latest
1212

1313
steps:
@@ -26,5 +26,22 @@ jobs:
2626
restore-keys: ${{ runner.os }}-m2
2727
- name: Build with Maven
2828
run: ./mvnw -B package --file pom.xml -Pscala-2.12
29+
build-scala-11:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up JDK 8
35+
uses: actions/setup-java@v1
36+
with:
37+
java-version: 8
38+
- name: Cache Maven packages
39+
uses: actions/cache@v2
40+
with:
41+
path: ~/.m2
42+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
43+
restore-keys: ${{ runner.os }}-m2
44+
- name: Build with Maven
45+
run: ./mvnw -B package --file pom.xml -Pscala-2.11
2946

3047
# vim: ts=2:sts=2:sw=2:expandtab

.github/workflows/build11.yml

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)