-
Notifications
You must be signed in to change notification settings - Fork 81
Expand file tree
/
Copy pathtest-native-compression-blosc2.yml
More file actions
63 lines (61 loc) · 2.01 KB
/
test-native-compression-blosc2.yml
File metadata and controls
63 lines (61 loc) · 2.01 KB
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
on:
workflow_dispatch:
pull_request:
paths:
- 'native-compression/libblosc2-jna/**'
- 'native-compression/libblosc2-native/**'
- 'test-native-compression-blosc2.yml'
permissions:
contents: read
jobs:
tests:
strategy:
matrix:
os: [
ubuntu-24.04,
ubuntu-24.04-arm,
windows-2022,
macos-14,
macos-15,
macos-15-intel
]
name: netCDF-Java Native Compression Tests (blosc2)
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
- name: Setup JDK 8, 17
if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-15-intel' }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: |
8
17
- name: Setup JDK 21
if: ${{ matrix.os != 'ubuntu-24.04' && matrix.os != 'macos-15-intel' }}
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Cache Gradle packages
uses: actions/cache@v5
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Run libblosc2 JNA tests
if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-15-intel' }}
run: ./gradlew -Dorg.gradle.java.installations.auto-detect=true clean :libblosc2-jna:test
env:
JDK8: /usr/thredds-test-environment/temurin8
- name: Run libblosc2 JNA tests (JDK 21 tests)
if: ${{ matrix.os != 'ubuntu-24.04' && matrix.os != 'macos-15-intel' }}
run: ./gradlew clean :libblosc2-jna:test21
- uses: actions/upload-artifact@v6
if: failure()
with:
name: NativeCompression_JUnit_Results_${{ github.sha }}_-${{ matrix.os }}
path: native-compression/libblosc2-jna/build/reports/tests