-
Notifications
You must be signed in to change notification settings - Fork 94
51 lines (42 loc) · 1.31 KB
/
build.yml
File metadata and controls
51 lines (42 loc) · 1.31 KB
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
name: Build and Test
on:
push:
branches:
- '**/*'
pull_request:
branches:
- '**/*'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: ['17', '21', '25']
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'zulu'
cache: maven
- name: Validate source code and pom formatting
run: mvn verify -Dspotless.action=check -Dpom.fmt.action=verify -Dall -DskipTests -ntp
- name: Set up GDAL
run: |
sudo apt update
sudo apt install --no-install-recommends -y gdal-bin libgdal-dev
# From OSGeo live
URL="http://download.osgeo.org/livedvd/data/gdal/gdal-3.4.3+dfsg-java.20220622.tgz"
FILE=/tmp/$(basename "$URL")
wget --no-verbose -O "$FILE" "$URL" && \
sudo tar xvf "$FILE" -C /
sudo mv /usr/lib/jni/libgdalalljni.so /usr/lib
- name: Build and Test
run: mvn -U clean install -T1C -Dall -Djava.awt.headless=true -DskipTests=false -ntp -fae