[pull] main from geoserver:main #263
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows GitHub CI | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/src/main/resources/GeoServerApplication_*.properties' | |
- '!**/src/main/resources/GeoServerApplication_fr.properties' | |
jobs: | |
build: | |
runs-on: [windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
# 500 commits, set to 0 to get all | |
fetch-depth: 500 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 11 | |
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 -Dall -U -T2 -Prelease -Pwindows-github-build -Dmaven.wagon.httpconnectionManager.ttlSeconds=120 --file src/pom.xml -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS -Dspotless.apply.skip=true | |
- name: Remove SNAPSHOT jars from repository | |
run: | | |
cmd --% /c for /f %i in ('dir /a:d /s /b %userprofile%\*SNAPSHOT*') do rd /s /q %i |