Skip to content

Commit

Permalink
fix: exclude unsupported matrix configurations (#256)
Browse files Browse the repository at this point in the history
* fix: remove java 16 from CI

* fix: exclude unsetupable matrix configs

* fix

* fix
  • Loading branch information
andre15silva authored Jul 18, 2024
1 parent a901ea8 commit ad572ed
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,22 @@ jobs:

strategy:
matrix:
java-version: [ 8 , 11 , 16 , 17 ]
compiler-version: [ 1.1 , 1.2 , 1.3 , 1.4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 ]
java-version: [8, 11, 16, 17]
compiler-version: [1.1, 1.2, 1.3, 1.4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]
os: [ ubuntu-latest , macos-latest , windows-latest ]
exclude:
- os: macos-latest
java-version: 8
- os: macos-latest
java-version: 16

steps:
- name: Checkout
uses: actions/[email protected]
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}

- name: Setup JDK${{ matrix.java-version }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
if: ${{ matrix.compiler-version <= matrix.java-version && (matrix.java-version < 14 || matrix.compiler-version >= 7) && (matrix.java-version < 11 || matrix.compiler-version >= 6) }}
with:
java-version: ${{ matrix.java-version }}
Expand Down

0 comments on commit ad572ed

Please sign in to comment.