-
-
Notifications
You must be signed in to change notification settings - Fork 38
51 lines (43 loc) · 1.4 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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