Skip to content

Commit f62dd21

Browse files
committed
Add workflow to test native libaec compression
1 parent afb3fbd commit f62dd21

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
workflow_dispatch:
3+
pull_request:
4+
5+
6+
jobs:
7+
tests:
8+
strategy:
9+
matrix:
10+
os: [
11+
ubuntu-24.04,
12+
ubuntu-24.04-arm,
13+
windows-2022,
14+
macos-14,
15+
macos-13
16+
]
17+
name: netCDF-Java Native Compression Tests
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up JDK 11
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: 'temurin'
25+
java-version: '11'
26+
- name: Cache Gradle packages
27+
uses: actions/cache@v4
28+
with:
29+
path: |
30+
~/.gradle/caches
31+
~/.gradle/wrapper
32+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+
restore-keys: |
34+
${{ runner.os }}-gradle-
35+
- name: Run libaec JNA tests
36+
run: ./gradlew clean :native-compression:libaec-jna:test
37+
- uses: actions/upload-artifact@v4
38+
if: failure()
39+
with:
40+
name: NativeCompression_JUnit_Results_${{ github.sha }}_-${{ matrix.os }}
41+
path: native-compression/libaec-jna/build/reports/tests

0 commit comments

Comments
 (0)