From e90357d8d6143dd943f12d9e1a241d350b028358 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Wed, 4 Sep 2024 10:56:47 +0200 Subject: [PATCH 1/4] Updated GHA to run on different OSes --- .github/workflows/gradle.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d669879c0..c460027eb 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,8 +1,16 @@ name: CI -on: [pull_request] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Set up JDK 11 From 0c8b8e41b6bf49226d05bf76de0b1d6fe0bc5a51 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Wed, 4 Sep 2024 11:13:03 +0200 Subject: [PATCH 2/4] Set up java 8 and gradle + added DV access key --- .github/workflows/gradle.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c460027eb..79d6e41a2 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -13,12 +13,19 @@ jobs: runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 + - name: Set up JDK 8 + uses: actions/setup-java@v3 + with: + java-version: 8 - name: Set up JDK 11 uses: actions/setup-java@v3 with: java-version: 11 distribution: 'temurin' - cache: 'gradle' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: Build with Gradle run: ./gradlew build -x eclipseTest -Pbuild.invoker=ci From 7046c90da9216b096d5a807a6f18b896aa330833 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Wed, 4 Sep 2024 11:17:03 +0200 Subject: [PATCH 3/4] Fix GHA and bump checkout and setup-java to v4 Gha fix fail-fast:false --- .github/workflows/gradle.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 79d6e41a2..f96628a3c 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,17 +8,19 @@ on: jobs: build: strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up JDK 8 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 8 + distribution: 'zulu' - name: Set up JDK 11 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: 11 distribution: 'temurin' @@ -27,6 +29,6 @@ jobs: with: develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: Build with Gradle - run: ./gradlew build -x eclipseTest -Pbuild.invoker=ci + run: ./gradlew build -x eclipseTest -Pbuild.invoker=ci From 1dd7195daa59ad10b27768a6bac551b063cd6bc5 Mon Sep 17 00:00:00 2001 From: Gasper Kojek Date: Wed, 4 Sep 2024 12:15:01 +0200 Subject: [PATCH 4/4] build.invoker for windows fix --- .github/workflows/gradle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index f96628a3c..faaa733a7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -29,6 +29,6 @@ jobs: with: develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }} - name: Build with Gradle - run: ./gradlew build -x eclipseTest -Pbuild.invoker=ci + run: ./gradlew build -x eclipseTest '-Pbuild.invoker=ci'