Skip to content

Commit

Permalink
updated workflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Dec 11, 2023
1 parent 26d902f commit 4260d0c
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions .github/workflows/xal-objects-build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 4260d0c

Please sign in to comment.