Skip to content

Commit

Permalink
updated build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
clausnagel committed Dec 11, 2023
1 parent 6ba9115 commit 44c567f
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions .github/workflows/xml-objects-build.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: xml-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
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
run: ./gradlew build
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: ${{ matrix.distribution }}
java-version: ${{ matrix.java }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Grant execute permission to Gradle
run: chmod +x ./gradlew
- name: Execute Gradle build
run: ./gradlew build

0 comments on commit 44c567f

Please sign in to comment.