Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit efd32e4

Browse files
committed
[SORMAS-Foundation#3730] build java 11 only
1 parent aed7c2b commit efd32e4

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
name: Java CI with Maven
55

6+
env:
7+
java: 11
8+
69
on:
710
push:
811
branches: [ development, master ]
@@ -11,29 +14,25 @@ on:
1114

1215
jobs:
1316
build:
14-
name: Build (Java ${{ matrix.java }})
17+
name: Build (Java ${{ env.java }})
1518
runs-on: ubuntu-latest
1619

17-
strategy:
18-
matrix:
19-
java: [ 8, 11 ]
20-
2120
steps:
2221
- name: Checkout repository
2322
uses: actions/checkout@v2
2423

25-
- name: Set up JDK ${{ matrix.java }}
24+
- name: Set up JDK ${{ env.java }}
2625
uses: actions/setup-java@v1
2726
with:
28-
java-version: ${{ matrix.java }}
27+
java-version: ${{ env.java }}
2928

3029
- name: Cache Maven packages
3130
# FIXME(@JonasCir) #3733 remove '**/*.pom' once serverlib pom is renamed
3231
uses: actions/cache@v2
3332
with:
3433
path: ~/.m2
35-
key: ${{ runner.os }}-java-${{ matrix.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
36-
restore-keys: ${{ runner.os }}-java-${{ matrix.java }}-m2
34+
key: ${{ runner.os }}-java-${{ env.java }}-m2-${{ hashFiles('**/pom.xml', '**/*.pom') }}
35+
restore-keys: ${{ runner.os }}-java-${{ env.java }}-m2
3736

3837
- name: Build with Maven
3938
working-directory: ./sormas-base

0 commit comments

Comments
 (0)