Skip to content

jHDF CI

jHDF CI #631

Workflow file for this run

name: jHDF CI
on:
push:
branches: [ master]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 4'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ 'macos-latest', 'ubuntu-latest', 'windows-latest', ['self-hosted', 'ARM64'] ]
java: [ '8', '11', '17' ]
steps:
- uses: actions/checkout@v3
- name: Set up JDK (x64)
uses: actions/setup-java@v3
if: runner.arch != 'ARM64'
with:
java-version: ${{ matrix.java }}
architecture: 'x64'
distribution: 'temurin'
cache: 'gradle'
- name: Set up JDK (arm64)
uses: actions/setup-java@v3
if: runner.arch == 'ARM64'
with:
java-version: ${{ matrix.java }}
architecture: 'aarch64'
distribution: 'temurin'
cache: 'gradle'
- name: Gradle Build
working-directory: jhdf
run: ./gradlew build
- name: Gradle Build Jars
working-directory: jhdf
run: ./gradlew jar sourcesJar javadocJar
- name: Gradle Stop Daemon
working-directory: jhdf
run: ./gradlew --stop