forked from geoserver/geoserver
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request geoserver#4588 from bradh/2.17.x
migrate CI build to github actions (geoserver#4581)
- Loading branch information
Showing
4 changed files
with
99 additions
and
67 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
name: Linux GitHub CI | ||
|
||
on: [pull_request] | ||
|
||
env: | ||
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=25 -Dmaven.wagon.http.retryHandler.count=3 -Xmx512m -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss,SSS | ||
TAKARI_SMART_BUILDER_VERSION: 0.6.1 | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-18.04 | ||
jdk: 8 | ||
- os: ubuntu-20.04 | ||
jdk: 11 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# 500 commits, set to 0 to get all | ||
fetch-depth: 500 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@v4 | ||
with: | ||
maven-version: 3.6.3 | ||
- 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 -U -T3 -fae -Dfmt.skip=true -Prelease -f src/pom.xml clean install | ||
- name: Build community modules | ||
run: mvn -nsu -B -U -T4 -fae -Dfmt.skip=true -DskipTests -Prelease -PcommunityRelease -f src/community/pom.xml clean install | ||
- name: Package | ||
run: mvn -f src/pom.xml assembly:single -nsu -N | ||
- name: Package community modules | ||
run: mvn -f src/community/pom.xml assembly:single -nsu -N | ||
- name: Remove SNAPSHOT jars from repository | ||
run: | | ||
find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | ||
QA: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
# 500 commits, set to 0 to get all | ||
fetch-depth: 500 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Set up Maven | ||
uses: stCarolas/setup-maven@v4 | ||
with: | ||
maven-version: 3.6.3 | ||
- 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 -U -T3 -fae -Dfmt.action=check -Dqa -DskipTests=true -Prelease -f src/pom.xml clean install | ||
- name: Build community modules | ||
run: mvn -nsu -B -U -T4 -fae -Dfmt.action=check -DskipTests -Prelease -PcommunityRelease -f src/community/pom.xml clean install | ||
- name: Remove SNAPSHOT jars from repository | ||
run: | | ||
find .m2/repository -name "*SNAPSHOT*" -type d | xargs rm -rf {} | ||
docs: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
- uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
sphinx | ||
requests | ||
- name: Build docs | ||
run: mvn -f doc/en install |
This file was deleted.
Oops, something went wrong.
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