From 6bb773e7692f913dec27105129ebe388de34e68b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C5=A1per=20Kojek?= Date: Wed, 4 Sep 2024 13:24:50 +0200 Subject: [PATCH] Github Actions build with multiple OSes (#1317) * Updated GHA to run on different OSes * Set up java 8 and gradle + added DV access key * Fix GHA and bump checkout and setup-java to v4 Gha fix fail-fast:false * build.invoker for windows fix --- .github/workflows/gradle.yml | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d669879c0..faaa733a7 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -1,17 +1,34 @@ name: CI -on: [pull_request] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: jobs: build: - runs-on: ubuntu-latest + 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@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' - 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 + run: ./gradlew build -x eclipseTest '-Pbuild.invoker=ci'