forked from geotools/geotools
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.02 KB
/
macos.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
name: Mac OS CI
on: [pull_request]
jobs:
build:
runs-on: [macos-latest]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'temurin'
- name: Set up GDAL
run: |
brew install gdal
- name: Maven repository caching
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: gt-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
gt-maven-
- name: Disable network offloading
# See: https://github.com/actions/virtual-environments/issues/1187#issuecomment-686735760
run: |
sudo sysctl -w net.link.generic.system.hwcksum_tx=0
sudo sysctl -w net.link.generic.system.hwcksum_rx=0
- name: Build with Maven
run: mvn -B clean install -T2 -Dall --file pom.xml -Dspotless.apply.skip=true
- name: Remove SNAPSHOT jars from repository
run: |
find ~/.m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}