Skip to content

Commit

Permalink
[#148] added build for oracle and temurin jdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasstamann committed Apr 11, 2024
1 parent e604a44 commit e7dba0b
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 10 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,18 @@ jobs:
uses: actions/checkout@v1

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Cache .m2
uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven

- name: Prepare mvnw
run: chmod +x ./mvnw

- name: Build
run: ./mvnw clean package



4 changes: 2 additions & 2 deletions .github/workflows/default_oracle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: default
name: default_oracle

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest,macos-latest,windows-latest ]
java: [ '8', '11', '17', '21' ]
java: [ '17', '21' ]

steps:
- name: Checkout Code
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/default_temurin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: default_temurin

on:
push:
branches:
- '*'
- '**/*'
- '!master'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest,macos-latest,windows-latest ]
java: [ '8', '11', '17', '21' ]

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'


- name: Prepare mvnw
run: chmod +x ./mvnw

- name: Build
run: ./mvnw clean package

0 comments on commit e7dba0b

Please sign in to comment.