Include media type for file attachments #6058
Workflow file for this run
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: Cross-Version | |
on: | |
schedule: | |
- cron: '0 0 * * 6' # Every Saturday at 00:00 UTC | |
push: | |
branches: | |
- main | |
- 'releases/**' | |
pull_request: | |
branches: | |
- '*' | |
permissions: read-all | |
env: | |
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }} | |
jobs: | |
openjdk: | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: | |
- version: 23 | |
type: ga | |
- version: 24 | |
type: ea | |
- version: 24 | |
type: ea | |
release: leyden | |
- version: 25 | |
type: ea | |
name: "OpenJDK ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }})" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Test JDK | |
uses: ./.github/actions/setup-test-jdk | |
- name: "Set up JDK ${{ matrix.jdk.version }} (${{ matrix.jdk.release || 'ea' }})" | |
if: matrix.jdk.type == 'ea' | |
uses: oracle-actions/setup-java@2e744f723b003fdd759727d0ff654c8717024845 # v1.4.0 | |
with: | |
website: jdk.java.net | |
release: ${{ matrix.jdk.release || matrix.jdk.version }} | |
version: latest | |
- name: "Set up JDK ${{ matrix.jdk.version }} (${{ matrix.jdk.distribution || 'temurin' }})" | |
if: matrix.jdk.type == 'ga' | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | |
with: | |
distribution: ${{ matrix.jdk.distribution || 'temurin' }} | |
java-version: ${{ matrix.jdk.version }} | |
check-latest: true | |
- name: 'Prepare JDK${{ matrix.jdk.version }} env var' | |
shell: bash | |
run: echo "JDK${{ matrix.jdk.version }}=$JAVA_HOME" >> $GITHUB_ENV | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
with: | |
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
arguments: | | |
-Ptesting.enableJaCoCo=false \ | |
-PjavaToolchain.version=${{ matrix.jdk.version }} \ | |
-Dscan.tag.JDK_${{ matrix.jdk.version }} \ | |
build \ | |
--no-configuration-cache #Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318 | |
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4 | |
if: ${{ always() }} | |
with: | |
name: Open Test Reports (${{ github.job }} ${{ matrix.jdk.version }} (${{ matrix.jdk.release || matrix.jdk.type }})) | |
path: '**/build/reports/open-test-report.html' | |
openj9: | |
strategy: | |
fail-fast: false | |
matrix: | |
jdk: [ 21 ] | |
name: "OpenJ9 ${{ matrix.jdk }}" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
with: | |
fetch-depth: 1 | |
- name: Set up Test JDK | |
uses: ./.github/actions/setup-test-jdk | |
with: | |
distribution: semeru | |
- name: 'Set up JDK ${{ matrix.jdk }}' | |
uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4 | |
with: | |
distribution: semeru | |
java-version: ${{ matrix.jdk }} | |
check-latest: true | |
- name: 'Prepare JDK${{ matrix.jdk }} env var' | |
shell: bash | |
run: echo "JDK${{ matrix.jdk }}=$JAVA_HOME" >> $GITHUB_ENV | |
- name: Build | |
uses: ./.github/actions/run-gradle | |
with: | |
encryptionKey: ${{ secrets.GRADLE_ENCRYPTION_KEY }} | |
arguments: | | |
-Ptesting.enableJaCoCo=false \ | |
-PjavaToolchain.version=${{ matrix.jdk }} \ | |
-PjavaToolchain.implementation=j9 \ | |
-Dscan.tag.JDK_${{ matrix.jdk }} \ | |
-Dscan.tag.OpenJ9 \ | |
build \ | |
--no-configuration-cache # Disable configuration cache due to https://github.com/diffplug/spotless/issues/2318 | |
- uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4 | |
if: ${{ always() }} | |
with: | |
name: Open Test Reports (${{ github.job }}) | |
path: '**/build/reports/open-test-report.html' |