-
-
Notifications
You must be signed in to change notification settings - Fork 37
91 lines (78 loc) · 3.34 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
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', '21' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK (x64)
uses: actions/setup-java@v4
if: runner.arch != 'ARM64' && runner.os != 'Linux'
with:
java-version: ${{ matrix.java }}
architecture: ${{ runner.arch }}
distribution: 'temurin'
cache: 'gradle'
- name: Set up JDK (arm64)
uses: actions/setup-java@v4
if: runner.arch == 'ARM64' && runner.os == 'Linux'
with:
java-version: ${{ matrix.java }}
architecture: 'aarch64'
distribution: 'zulu'
cache: 'gradle'
- name: Install HDF5 (Linux)
if: runner.arch != 'ARM64' && runner.os == 'Linux'
run: >
wget -q https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.4.2/hdf5-1.14.4-2-ubuntu-2204_gcc.tar.gz
tar -xzf hdf5-1.14.4-2-ubuntu-2204_gcc.tar.gz
tar -xzf hdf5/HDF5-1.14.4.2-Linux.tar.gz
echo "$GITHUB_WORKSPACE/HDF5-1.14.4.2-Linux/HDF_Group/HDF5/1.14.4.2/bin/" >> $GITHUB_PATH
echo $GITHUB_PATH
- name: Install HDF5 (Mac)
if: runner.os == 'macOS'
run: >
wget -q https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.4.2/hdf5-1.14.4-2-osx12.tar.gz
tar -xzf hdf5-1.14.4-2-osx12.tar.gz
tar -xzf hdf5/HDF5-1.14.4.2-Darwin.tar.gz
echo "$GITHUB_WORKSPACE/HDF5-1.14.4.2-Darwin/HDF_Group/HDF5/1.14.4.2/bin/" >> $GITHUB_PATH
echo $GITHUB_PATH
- name: Install HDF5 (Windows)
if: runner.os == 'Windows'
shell: bash
run: >
curl.exe --location --remote-name https://github.com/HDFGroup/hdf5/releases/download/hdf5_1.14.4.2/hdf5-1.14.4-2-win-vs2022_cl.zip
unzip hdf5-1.14.4-2-win-vs2022_cl.zip
unzip hdf5/HDF5-1.14.4-win64.zip
echo "$GITHUB_WORKSPACE/HDF5-1.14.4-win64/bin/" >> $GITHUB_PATH
echo $GITHUB_PATH
- name: h5dump version
continue-on-error: true
run: h5dump --version
- 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
- name: Archive junit results
if: always()
uses: actions/upload-artifact@v4
with:
name: junit-report-${{ matrix.os }}-${{ matrix.java }}
path: jhdf/build/reports/tests/test
if-no-files-found: error