mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2024-11-18 00:46:55 +01:00
Build against Java 8, 11 and 16
This commit is contained in:
parent
748b9f33f7
commit
4c4b1602d9
10
.github/workflows/pr_build_jars.yml
vendored
10
.github/workflows/pr_build_jars.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: "Build Jars on Java 8, 9, 10 and 11"
|
name: "Test compiling against Java 8, 11 and 16"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
@ -10,22 +10,22 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
testBuilds:
|
testBuilds:
|
||||||
name: "Build Jars against Java 8, 9, 10 and 11"
|
name: "Test-compile against Java 8, 11 and 16"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
max-parallel: 4
|
max-parallel: 4
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [8, 9, 10, 11]
|
java-version: [8, 11, 16]
|
||||||
steps:
|
steps:
|
||||||
- name: "Checkout Code"
|
- name: "Checkout Code"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: "Prepare Java ${{ matrix.java-version }}"
|
- name: "Prepare Java ${{ matrix.java-version }}"
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "adobt"
|
||||||
java-version: "${{ matrix.java-version }}"
|
java-version: "${{ matrix.java-version }}"
|
||||||
- name: "Make build.gradle executable"
|
- name: "Make build.gradle executable"
|
||||||
run: "chmod +x gradlew"
|
run: "chmod +x gradlew"
|
||||||
- name: "Build jar"
|
- name: "Build jar with Java ${{ matrix.java-version }}"
|
||||||
run: "./gradlew shadowJar"
|
run: "./gradlew shadowJar"
|
||||||
|
Loading…
Reference in New Issue
Block a user