Fixes #4565 - Add Java 24 to experimental workflow (#4588) #149
This file contains 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
name: experimental | |
on: | |
push: | |
branches: | |
- 'current' | |
workflow_dispatch: | |
jobs: | |
build: | |
if: github.repository == 'piranhacloud/piranha' | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
distribution: [ 'temurin' ] | |
java: [ '23', '24-ea', '25-ea' ] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Checkout Sources | |
uses: actions/checkout@v4 | |
- name: Setup Java ${{ matrix.java }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- name: Build with Maven | |
run: mvn -B -ntp -T 1 install | |
result: | |
if: ${{ always() }} && github.repository == 'piranhacloud/piranha' | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check build results | |
run: | | |
result="${{ needs.build.result }}" | |
if [[ $result == "success" || $result == "skipped" ]]; then | |
echo "All matrix jobs were successful or skipped." | |
exit 0 | |
else | |
echo "One or more matrix jobs failed." | |
exit 0 | |
fi |