Skip to content

Commit

Permalink
Only run API validation checks for Java 19 (Android...)
Browse files Browse the repository at this point in the history
  • Loading branch information
05nelsonm committed Aug 30, 2024
1 parent 6252308 commit 1b3c9f0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
java-version: [ 11, 19 ]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -46,10 +47,10 @@ jobs:
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: 11
java-version: ${{ matrix.java-version }}

- name: Check API Compatibility
if: matrix.os == 'macos-latest'
if: matrix.os == 'macos-latest' && matrix.java-version == 19
run: >
./gradlew apiCheck --stacktrace
- name: Run macOS Tests
Expand All @@ -63,7 +64,7 @@ jobs:
./gradlew check --stacktrace
-PKMP_TARGETS="JVM,JS,ANDROID_ARM32,ANDROID_ARM64,ANDROID_X64,ANDROID_X86,LINUX_ARM64,LINUX_X64,WASM_JS,WASM_WASI"
- name: Run Windows Tests
if: matrix.os == 'windows-latest'
if: matrix.os == 'windows-latest' && matrix.java-version == 11
run: >
./gradlew check --stacktrace
-PKMP_TARGETS="JVM,JS,MINGW_X64,WASM_JS,WASM_WASI"
Expand Down

0 comments on commit 1b3c9f0

Please sign in to comment.