Skip to content

Commit

Permalink
Add Github action for building Java (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
gi-wg2 authored Oct 20, 2023
1 parent 84b0f99 commit e49ea6e
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/java-build-v0.yml
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
36 changes: 36 additions & 0 deletions .github/workflows/java-build-v1.yml
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

0 comments on commit e49ea6e

Please sign in to comment.