From 1fbca324cde3981499539e193d53d8086b7c2ea0 Mon Sep 17 00:00:00 2001 From: Paul Austin Date: Mon, 5 Feb 2024 14:21:59 -0800 Subject: [PATCH 1/2] gha --- .github/workflows/BuildCheck.yml | 50 ++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/BuildCheck.yml diff --git a/.github/workflows/BuildCheck.yml b/.github/workflows/BuildCheck.yml new file mode 100644 index 00000000..425f1de7 --- /dev/null +++ b/.github/workflows/BuildCheck.yml @@ -0,0 +1,50 @@ +name: Build Check + +on: + push: + branches: + - 'main' + - 'feature/*' + - 'patch/*' + + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + +#### Initialize Environment #### + - name: Initialize Environment + run: | + REF="$GITHUB_REF" + if [[ "$REF" =~ ^refs/heads/.* ]]; then + REF="${REF/refs\/heads\//}" + elif [[ "$REF" =~ ^refs/tags/.* ]]; then + REF="${REF/refs\/tags\//}" + else + echo "Ref must be a branch or tag '${REF}'" + exit -1 + fi + echo "REF=${REF}" >> $GITHUB_ENV + +#### Checkout jeometry #### + - name: Checkout jeometry + uses: actions/checkout@v4 + with: + ref: ${{env.REF}} + path: jeometry + +#### JAVA VERSION #### + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'microsoft' + cache: 'maven' + +#### Build & Deploy #### + - name: Build & Deploy + working-directory: ./jeometry + run: mvn -B -ntp -DskipTests -Dmaven.javadoc.skip=true -Dmaven.source.skip install From 7f9e718f8c9070f96820d6770e6d3f79bd3150a2 Mon Sep 17 00:00:00 2001 From: Paul Austin Date: Mon, 5 Feb 2024 16:20:45 -0800 Subject: [PATCH 2/2] version comment --- jeometry-common/pom.xml | 2 +- jeometry-coordinatesystem/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jeometry-common/pom.xml b/jeometry-common/pom.xml index a960f67d..9f7e1c08 100644 --- a/jeometry-common/pom.xml +++ b/jeometry-common/pom.xml @@ -6,7 +6,7 @@ org.jeometry jeometry-parent - MAIN-SNAPSHOT + MAIN-SNAPSHOT jeometry-common jeometry.org Common API diff --git a/jeometry-coordinatesystem/pom.xml b/jeometry-coordinatesystem/pom.xml index b930ac2d..8939a838 100644 --- a/jeometry-coordinatesystem/pom.xml +++ b/jeometry-coordinatesystem/pom.xml @@ -6,7 +6,7 @@ org.jeometry jeometry-parent - MAIN-SNAPSHOT + MAIN-SNAPSHOT jeometry-coordinatesystem jeometry.org Coordinate Systems diff --git a/pom.xml b/pom.xml index dc1b6820..634eda26 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ jeometry-parent pom Jeometry.org - MAIN-SNAPSHOT + MAIN-SNAPSHOT The parent module of the Jeometry.org Libraries. http://revolsys.github.com/com.revolsys.open/