From f847580ef57d30d985a88eca335fd313e93a2663 Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:00 -0500 Subject: [PATCH 1/6] CI: switch from Travis CI to GitHub Actions --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3d4ef22..148378b 100644 --- a/pom.xml +++ b/pom.xml @@ -49,7 +49,7 @@ Travis - https://travis-ci.org/scenerygraphics/jvrpn/ + https://github.com/scenerygraphics/jvrpn/actions From 80e0c4af52e0cb72e7b8a4a6c241c7cab0413a0a Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:00 -0500 Subject: [PATCH 2/6] CI: add/update main build action --- .github/workflows/build-main.yml | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/build-main.yml diff --git a/.github/workflows/build-main.yml b/.github/workflows/build-main.yml new file mode 100644 index 0000000..3fb5622 --- /dev/null +++ b/.github/workflows/build-main.yml @@ -0,0 +1,44 @@ +name: build + +on: + push: + branches: + - master + tags: + - "*-[0-9]+.*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Cache m2 folder + uses: actions/cache@v2 + env: + cache-name: cache-m2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-build-${{ env.cache-name }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'zulu' + - name: Set up CI environment + run: .github/setup.sh + - name: Execute the build + run: .github/build.sh + env: + GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + MAVEN_USER: ${{ secrets.MAVEN_USER }} + MAVEN_PASS: ${{ secrets.MAVEN_PASS }} + OSSRH_PASS: ${{ secrets.OSSRH_PASS }} + SIGNING_ASC: ${{ secrets.SIGNING_ASC }} From e144af8a759be77de33927ff447cb2831cdf66aa Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:01 -0500 Subject: [PATCH 3/6] CI: add/update PR build action --- .github/workflows/build-pr.yml | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-pr.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000..92a0192 --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,35 @@ +name: build PR + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Cache m2 folder + uses: actions/cache@v2 + env: + cache-name: cache-m2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-build-${{ env.cache-name }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build- + ${{ runner.os }}- + + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'zulu' + - name: Set up CI environment + run: .github/setup.sh + - name: Execute the build + run: .github/build.sh From 0d619f2083a56e463e22ba349f4a6cd1bf2a30f9 Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:01 -0500 Subject: [PATCH 4/6] CI: add executable script .github/setup.sh --- .github/setup.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .github/setup.sh diff --git a/.github/setup.sh b/.github/setup.sh new file mode 100755 index 0000000..f359bbe --- /dev/null +++ b/.github/setup.sh @@ -0,0 +1,3 @@ +#!/bin/sh +curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-setup-github-actions.sh +sh ci-setup-github-actions.sh From 8910583f460fdd2aba3e2542221861b093341716 Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:01 -0500 Subject: [PATCH 5/6] CI: add executable script .github/build.sh --- .github/build.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 .github/build.sh diff --git a/.github/build.sh b/.github/build.sh new file mode 100755 index 0000000..7da4262 --- /dev/null +++ b/.github/build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/master/ci-build.sh +sh ci-build.sh From 78648255601989900dad7991f8ce096f8046b226 Mon Sep 17 00:00:00 2001 From: hinerm Date: Fri, 9 Jul 2021 09:51:02 -0500 Subject: [PATCH 6/6] CI: add README.md badge link --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 865ef87..a33639c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![](https://github.com/scenerygraphics/jvrpn/actions/workflows/build-main.yml/badge.svg)](https://github.com/scenerygraphics/jvrpn/actions/workflows/build-main.yml) + # Mavenized VRPN This is a distribution of VRPN's Java part that can be used in a Maven project on Windows, OS X and Linux.