From 748b9f33f779025d4b7c260786d7006ff0d3a983 Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Mon, 26 Apr 2021 18:05:42 +0200 Subject: [PATCH 1/3] Build jars on PR (Compile and build validation) --- .github/workflows/pr_build_jars.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr_build_jars.yml diff --git a/.github/workflows/pr_build_jars.yml b/.github/workflows/pr_build_jars.yml new file mode 100644 index 0000000..a559eea --- /dev/null +++ b/.github/workflows/pr_build_jars.yml @@ -0,0 +1,31 @@ +name: "Build Jars on Java 8, 9, 10 and 11" + +on: + pull_request: + branches: + - development + paths: + - "src/**" + - "build.gradle" + +jobs: + testBuilds: + name: "Build Jars against Java 8, 9, 10 and 11" + runs-on: ubuntu-latest + strategy: + fail-fast: false + max-parallel: 4 + matrix: + java-version: [8, 9, 10, 11] + steps: + - name: "Checkout Code" + uses: actions/checkout@v2 + - name: "Prepare Java ${{ matrix.java-version }}" + uses: actions/setup-java@v2 + with: + distribution: "zulu" + java-version: "${{ matrix.java-version }}" + - name: "Make build.gradle executable" + run: "chmod +x gradlew" + - name: "Build jar" + run: "./gradlew shadowJar" From 4c4b1602d9158746dbd7525802aa7ada4056142a Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Fri, 25 Jun 2021 16:32:45 +0200 Subject: [PATCH 2/3] Build against Java 8, 11 and 16 --- .github/workflows/pr_build_jars.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr_build_jars.yml b/.github/workflows/pr_build_jars.yml index a559eea..920c24b 100644 --- a/.github/workflows/pr_build_jars.yml +++ b/.github/workflows/pr_build_jars.yml @@ -1,4 +1,4 @@ -name: "Build Jars on Java 8, 9, 10 and 11" +name: "Test compiling against Java 8, 11 and 16" on: pull_request: @@ -10,22 +10,22 @@ on: jobs: testBuilds: - name: "Build Jars against Java 8, 9, 10 and 11" + name: "Test-compile against Java 8, 11 and 16" runs-on: ubuntu-latest strategy: fail-fast: false max-parallel: 4 matrix: - java-version: [8, 9, 10, 11] + java-version: [8, 11, 16] steps: - name: "Checkout Code" uses: actions/checkout@v2 - name: "Prepare Java ${{ matrix.java-version }}" uses: actions/setup-java@v2 with: - distribution: "zulu" + distribution: "adobt" java-version: "${{ matrix.java-version }}" - name: "Make build.gradle executable" run: "chmod +x gradlew" - - name: "Build jar" + - name: "Build jar with Java ${{ matrix.java-version }}" run: "./gradlew shadowJar" From af268c4941d01a37ccd8b491d513ee06621e9ba8 Mon Sep 17 00:00:00 2001 From: Andre_601 <11576465+Andre601@users.noreply.github.com> Date: Fri, 25 Jun 2021 16:33:27 +0200 Subject: [PATCH 3/3] adoPt I always make that mistake... --- .github/workflows/pr_build_jars.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_build_jars.yml b/.github/workflows/pr_build_jars.yml index 920c24b..ba543f6 100644 --- a/.github/workflows/pr_build_jars.yml +++ b/.github/workflows/pr_build_jars.yml @@ -23,7 +23,7 @@ jobs: - name: "Prepare Java ${{ matrix.java-version }}" uses: actions/setup-java@v2 with: - distribution: "adobt" + distribution: "adopt" java-version: "${{ matrix.java-version }}" - name: "Make build.gradle executable" run: "chmod +x gradlew"