Skip to content

Commit

Permalink
Github Actions build with multiple OSes (#1317)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ribafish committed Sep 4, 2024
1 parent 0891026 commit 6bb773e
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -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'


0 comments on commit 6bb773e

Please sign in to comment.