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 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/