Skip to content

Commit 4c2ff52

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

File tree

1 file changed

+42
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)