Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GitHub Actions CI Configured to attempt builds with Java 8 and 11, plus a Java 17 build that is allowed to fail (since it currently is). * Maven: remove prerequisite config * Remove TravisCI config * Maven: Update project version to 3.1.0.1-SNAPSHOT * CI: add Windows and MacOS (JDK 8 and 11 only) * CI: Make artifact names unique
- Loading branch information
Showing
5 changed files
with
53 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
name: Java CI with Maven | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.continue-on-error }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-10.15, windows-latest] | ||
java-version: [ '8', '11' ] | ||
continue-on-error: [false] | ||
include: | ||
- os: ubuntu-latest | ||
java-version: '17' | ||
continue-on-error: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java-version }} | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Build with Maven | ||
id: maven_compile | ||
run: mvn compile --file pom.xml | ||
- name: Package with Maven | ||
id: maven_package | ||
run: mvn package --file pom.xml | ||
- name: Stage JAR file artifact | ||
run: mkdir staging && cp uis/target/BiglyBT.jar staging/ | ||
if: steps.maven_package.outcome == 'success' | ||
- name: Publish artifact | ||
if: steps.maven_package.outcome == 'success' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: BiglyBT_${{ runner.os }}_JDK_${{ matrix.java-version }} | ||
path: staging | ||
|
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
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