forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 4
32 lines (28 loc) · 925 Bytes
/
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
name: Mac OS CI
on:
pull_request:
paths-ignore:
- '**/src/main/resources/GeoServerApplication_*.properties'
- '!**/src/main/resources/GeoServerApplication_fr.properties'
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: 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 clean install -U -T2 -Prelease -Pmacos-github-build -Dspotless.apply.skip=true --file src/pom.xml
- name: Remove SNAPSHOT jars from repository
run: |
find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {}