Skip to content

Commit

Permalink
Update CI to openHAB 5
Browse files Browse the repository at this point in the history
Signed-off-by: Jimmy Tanagra <[email protected]>
  • Loading branch information
jimtng committed Dec 16, 2024
1 parent e6736a5 commit d490be8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip')"
outputs:
openhab_matrix: |
["3.4.5", "4.0.4", "4.1.3", "4.2.3", "4.3.0.M5", "4.3.0-SNAPSHOT"]
["3.4.5", "4.0.4", "4.1.3", "4.2.3", "4.3.0", "5.0.0-SNAPSHOT"]
snapshot_date: |
${{ steps.snapshot-date.outputs.SNAPSHOT_DATE }}
steps:
Expand Down Expand Up @@ -103,7 +103,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-version: ${{ startsWith(matrix.openhab_version, '5.') && '21' || startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-package: jre
- name: Setup openHAB
if: steps.cache.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -135,9 +135,9 @@ jobs:
jruby_version: jruby-9.3.10.0
- openhab_version: 4.2.3
jruby_version: jruby-9.3.10.0
- openhab_version: 4.3.0.M5
- openhab_version: 4.3.0
jruby_version: jruby-9.3.10.0
- openhab_version: 4.3.0-SNAPSHOT
- openhab_version: 5.0.0-SNAPSHOT
jruby_version: jruby-9.3.10.0
steps:
- uses: actions/checkout@v4
Expand All @@ -148,7 +148,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-version: ${{ startsWith(matrix.openhab_version, '5.') && '21' || startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-package: jre
- name: Restore openHAB setup
uses: actions/cache@v4
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: zulu
java-version: ${{ startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-version: ${{ startsWith(matrix.openhab_version, '5.') && '21' || startsWith(matrix.openhab_version, '4.') && '17' || '11' }}
java-package: jre
- name: Restore openHAB setup
uses: actions/cache@v4
Expand Down

0 comments on commit d490be8

Please sign in to comment.