forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.77 KB
/
linux_jdk17.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Linux JDK 17 GitHub CI
on:
pull_request:
paths-ignore:
- '**/src/main/resources/GeoServerApplication_*.properties'
- '!**/src/main/resources/GeoServerApplication_fr.properties'
env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-20.04
jdk: 17
dist: 'temurin'
steps:
- uses: actions/checkout@v2
with:
# 500 commits, set to 0 to get all
fetch-depth: 500
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.jdk }}
distribution: ${{ matrix.dist }}
- name: Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.8.4
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: gs-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gs-${{ runner.os }}-maven-
- name: Build with Maven
run: mvn -B -U -T3 -fae -Dspotless.apply.skip=true -Prelease -f src/pom.xml clean install
- name: Build community modules
run: mvn -nsu -B -U -T4 -fae -Dspotless.apply.skip=true -DskipTests -Prelease -PcommunityRelease -f src/community/pom.xml clean install
- name: Package
run: mvn -f src/pom.xml assembly:single -nsu -N
- name: Package community modules
run: mvn -f src/community/pom.xml assembly:single -nsu -N
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}