-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github action for building Java (#44)
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 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,36 @@ | ||
name: Build v0 Java for all JDKs on all OSes | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- '*.md' | ||
- '.gitignore' | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '.gitignore' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [8, 11, 17, 21] | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java_version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: ${{ matrix.java_version }} | ||
- name: Make Maven Wrapper executable | ||
if: contains(matrix.os, 'win') == false | ||
run: chmod +x mvnw | ||
- name: Package | ||
run: ./mvnw --file wgtwo/pom-v0.xml package |
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,36 @@ | ||
name: Build v1 Java for all JDKs on all OSes | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths-ignore: | ||
- '*.md' | ||
- '.gitignore' | ||
pull_request: | ||
paths-ignore: | ||
- '*.md' | ||
- '.gitignore' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
java_version: [8, 11, 17, 21] | ||
os: [windows-latest, macOS-latest, ubuntu-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK ${{ matrix.java_version }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'corretto' | ||
java-version: ${{ matrix.java_version }} | ||
- name: Make Maven Wrapper executable | ||
if: contains(matrix.os, 'win') == false | ||
run: chmod +x mvnw | ||
- name: Package | ||
run: ./mvnw --file wgtwo/pom-v1.xml package |