forked from geotools/geotools
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.36 KB
/
linux_jdk11.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
name: Linux JDK 11 GitHub CI
on: [pull_request]
env:
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3
jobs:
build:
runs-on: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 11
- name: Set up GDAL
run: |
sudo apt update
sudo apt install --no-install-recommends -y gdal-bin libgdal-dev libgdal-java
- name: Maven repository caching
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: gt-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- uses: BSFishy/pip-action@v1
with:
packages: |
sphinx==4.5.0
requests
- name: Disable checksum offloading
# See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
run: sudo ethtool -K eth0 tx off rx off
- name: Build with Maven
run: |
mvn -B clean install -Dspotless.apply.skip=true -Dall -T2 -U -Pjdk11test -Plinux-github-build --file pom.xml
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}