File tree Expand file tree Collapse file tree 6 files changed +42
-24
lines changed
Expand file tree Collapse file tree 6 files changed +42
-24
lines changed Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - name : Set up JDK 11
10- uses : actions/setup-java@v4
9+ - name : Set up JDK 17
10+ uses : actions/setup-java@v5
1111 with :
1212 distribution : ' temurin'
13- java-version : ' 11'
13+ java-version : |
14+ 8
15+ 17
1416 - name : Build with Gradle (refresh dependencies)
1517 run : ./gradlew clean classes testClasses assemble --refresh-dependencies
1618 - name : Build sourceJars
Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88 steps :
99 - uses : actions/checkout@v4
10- - name : Setup Java 8
11- uses : actions/setup-java@v4
10+ - name : Setup Java 8, 17
11+ uses : actions/setup-java@v5
1212 with :
1313 distribution : ' temurin'
14- java-version : ' 8'
14+ java-version : |
15+ 8
16+ 17
1517 - name : Cache Gradle packages
1618 uses : actions/cache@v4
1719 with :
Original file line number Diff line number Diff line change @@ -11,11 +11,11 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - name : Set up JDK 11
15- uses : actions/setup-java@v4
14+ - name : Set up JDK 17
15+ uses : actions/setup-java@v5
1616 with :
1717 distribution : ' temurin'
18- java-version : ' 11 '
18+ java-version : ' 17 '
1919 - name : Cache Gradle packages
2020 uses : actions/cache@v4
2121 with :
Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - name : Set up JDK 11
10- uses : actions/setup-java@v4
9+ - name : Set up JDK 17
10+ uses : actions/setup-java@v5
1111 with :
1212 distribution : ' temurin'
13- java-version : ' 11 '
13+ java-version : ' 17 '
1414 - name : Cache Gradle packages
1515 uses : actions/cache@v4
1616 with :
2020 key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2121 restore-keys : |
2222 ${{ runner.os }}-gradle-
23- - name : Code Style Check with Gradle and Spotless
23+ - name : build-logic Code Style Check with Gradle and Spotless
24+ run : ./gradlew :build-logic:clean :build-logic:spotlessCheck
25+ - name : netCDF-Java Code Style Check with Gradle and Spotless
2426 run : ./gradlew clean spotlessCheck
Original file line number Diff line number Diff line change @@ -24,15 +24,17 @@ jobs:
2424 runs-on : ${{ matrix.os }}
2525 steps :
2626 - uses : actions/checkout@v4
27- - name : Set up JDK 11
28- if : ${{ matrix.os != 'windows-11-arm ' }}
29- uses : actions/setup-java@v4
27+ - name : Set up JDK 8, 17
28+ if : ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-13 ' }}
29+ uses : actions/setup-java@v5
3030 with :
3131 distribution : ' temurin'
32- java-version : ' 11'
32+ java-version : |
33+ 8
34+ 17
3335 - name : Set up JDK 21
34- if : ${{ matrix.os = = 'windows-11-arm ' }}
35- uses : actions/setup-java@v4
36+ if : ${{ matrix.os != 'ubuntu-24.04' && matrix.os ! = 'macos-13 ' }}
37+ uses : actions/setup-java@v5
3638 with :
3739 distribution : ' temurin'
3840 java-version : ' 21'
4648 restore-keys : |
4749 ${{ runner.os }}-gradle-
4850 - name : Run libaec JNA tests
49- run : ./gradlew clean :native-compression:libaec-jna:simpleTests
51+ if : ${{ matrix.os == 'ubuntu-24.04' || matrix.os == 'macos-13' }}
52+ run : ./gradlew -Dorg.gradle.java.installations.auto-detect=true clean :libaec-jna:test
53+ env :
54+ JDK8 : /usr/thredds-test-environment/temurin8
55+ - name : Run libaec JNA tests (JDK 21 tests)
56+ if : ${{ matrix.os != 'ubuntu-24.04' && matrix.os != 'macos-13' }}
57+ run : ./gradlew clean :libaec-jna:test21
5058 - uses : actions/upload-artifact@v4
5159 if : failure()
5260 with :
Original file line number Diff line number Diff line change @@ -11,15 +11,19 @@ jobs:
1111 java-vendor : ['zulu', 'temurin', 'corretto']
1212 steps :
1313 - uses : actions/checkout@v4
14- - name : Build and test with Gradle ( ${{ matrix.java-vendor }} ${{ matrix.java-version }})
14+ - name : Build with ${{ matrix.java-vendor }} 17 and run tests with ${{ matrix.java-vendor }} ${{ matrix.java-version }}
1515 uses : Unidata/thredds-test-action@v3
1616 with :
1717 java-vendor : ${{ matrix.java-vendor }}
18- java-version : ${{ matrix.java-version }}
18+ java-version : 17
1919 build-tool : ' gradlew'
20- test-command : ' --info --stacktrace testAll'
20+ test-command : ' -Dorg.gradle.java.installations.fromEnv=JDK8 --info --stacktrace test'
21+ env :
22+ JDK8 : /usr/thredds-test-environment/${{ matrix.java-vendor }}8
2123 - uses : actions/upload-artifact@v4
2224 if : failure()
2325 with :
2426 name : netCDF-Java_JUnit_Results_${{ github.sha }}_${{ matrix.java-vendor }}-${{ matrix.java-version }}
25- path : build/reports/allTests
27+ path : |
28+ ${{ github.workspace }}/**/build/reports/tests/**/*
29+ !${{ github.workspace }}/build-logic/**/*
You can’t perform that action at this time.
0 commit comments