diff --git a/.github/workflows/xal-objects-build.yml b/.github/workflows/xal-objects-build.yml index a2913c6..413aacb 100644 --- a/.github/workflows/xal-objects-build.yml +++ b/.github/workflows/xal-objects-build.yml @@ -1,24 +1,28 @@ name: xal-objects-build -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] +on: [push, pull_request] jobs: - build: - - runs-on: ubuntu-latest - + gradle: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + java: [17] + distribution: [temurin] + runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Java uses: actions/setup-java@v3 with: - distribution: temurin - java-version: 11 - - name: Grant execute permission for gradlew - run: chmod +x gradlew - - name: Build with Gradle + distribution: ${{ matrix.distribution }} + java-version: ${{ matrix.java }} + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + with: + cache-disabled: true + - name: Grant execute permission to Gradle + run: chmod +x ./gradlew + - name: Execute Gradle build run: ./gradlew build \ No newline at end of file