Upgrade to Gradle 9 and migrate to Kotlin DSL #21
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'native-compression/libaec-jna/**' | |
| - 'native-compression/libaec-native/**' | |
| - 'native-compression/build.gradle' | |
| - '.github/workflows/test-native-compression.yml' | |
| jobs: | |
| tests: | |
| strategy: | |
| matrix: | |
| os: [ | |
| ubuntu-24.04, | |
| ubuntu-24.04-arm, | |
| windows-2022, | |
| windows-11-arm, | |
| macos-13, | |
| macos-14, | |
| macos-15 | |
| ] | |
| name: netCDF-Java Native Compression Tests | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 8, 17 | |
| if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-13' }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: | | |
| 8 | |
| 17 | |
| - name: Set up JDK 21 | |
| if: ${{ matrix.os != 'ubuntu-24.04' && matrix.os != 'macos-13' }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Cache Gradle packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.gradle/caches | |
| ~/.gradle/wrapper | |
| key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gradle- | |
| - name: Run libaec JNA tests | |
| if: ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-13' }} | |
| run: ./gradlew -Dorg.gradle.java.installations.auto-detect=true clean :libaec-jna:test | |
| env: | |
| JDK8: /usr/thredds-test-environment/temurin8 | |
| - name: Run libaec JNA tests (JDK 21 tests) | |
| if: ${{ matrix.os != 'ubuntu-24.04' && matrix.os != 'macos-13' }} | |
| run: ./gradlew clean :libaec-jna:test21 | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: NativeCompression_JUnit_Results_${{ github.sha }}_-${{ matrix.os }} | |
| path: native-compression/libaec-jna/build/reports/tests |