Skip to content

Commit

Permalink
CI: go back to JVM 22 (scala doesn't work with 23 yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
durban committed Sep 22, 2024
1 parent fc879ef commit ab4d83d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 41 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,63 +31,63 @@ jobs:
java:
- temurin@11
- temurin@21
- temurin@23
- temurin@22
- graal_22.3.3@11
- graalvm@21
- graalvm@23
- graalvm@22
- semeru@11
- semeru@21
- semeru@23
- semeru@22
include:
- os: macos-14
java: temurin@23
java: temurin@22
scala: 2.13
- os: windows-latest
java: temurin@23
java: temurin@22
scala: 2.13
- os: macos-14
java: temurin@23
java: temurin@22
scala: 3
- os: windows-latest
java: temurin@23
java: temurin@22
scala: 3
exclude:
- os: windows-latest
java: graal_22.3.3@11
- os: windows-latest
java: graalvm@21
- os: windows-latest
java: graalvm@23
java: graalvm@22
- os: windows-latest
java: semeru@11
- os: windows-latest
java: semeru@21
- os: windows-latest
java: semeru@23
java: semeru@22
- os: macos-14
java: graal_22.3.3@11
- os: macos-14
java: graalvm@21
- os: macos-14
java: graalvm@23
java: graalvm@22
- os: macos-14
java: semeru@11
- os: macos-14
java: semeru@21
- os: macos-14
java: semeru@23
java: semeru@22
- os: macos-14
java: temurin@11
- os: macos-14
java: temurin@21
- os: macos-14
java: temurin@23
java: temurin@22
- os: windows-latest
java: temurin@11
- os: windows-latest
java: temurin@21
- os: windows-latest
java: temurin@23
java: temurin@22
- os: ubuntu-latest
java: semeru@11
scala: 3
Expand Down Expand Up @@ -140,17 +140,17 @@ jobs:
shell: bash
run: sbt -v +update

- name: Setup Java (temurin@23)
id: setup-java-temurin-23
if: matrix.java == 'temurin@23'
- name: Setup Java (temurin@22)
id: setup-java-temurin-22
if: matrix.java == 'temurin@22'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 23
java-version: 22
cache: sbt

- name: sbt update
if: matrix.java == 'temurin@23' && steps.setup-java-temurin-23.outputs.cache-hit == 'false'
if: matrix.java == 'temurin@22' && steps.setup-java-temurin-22.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update

Expand Down Expand Up @@ -182,17 +182,17 @@ jobs:
shell: bash
run: sbt -v +update

- name: Setup Java (graalvm@23)
id: setup-java-graalvm-23
if: matrix.java == 'graalvm@23'
- name: Setup Java (graalvm@22)
id: setup-java-graalvm-22
if: matrix.java == 'graalvm@22'
uses: graalvm/setup-graalvm@v1
with:
distribution: graalvm
java-version: 23
java-version: 22
cache: sbt

- name: sbt update
if: matrix.java == 'graalvm@23' && steps.setup-java-graalvm-23.outputs.cache-hit == 'false'
if: matrix.java == 'graalvm@22' && steps.setup-java-graalvm-22.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update

Expand Down Expand Up @@ -224,66 +224,66 @@ jobs:
shell: bash
run: sbt -v +update

- name: Setup Java (semeru@23)
id: setup-java-semeru-23
if: matrix.java == 'semeru@23'
- name: Setup Java (semeru@22)
id: setup-java-semeru-22
if: matrix.java == 'semeru@22'
uses: actions/setup-java@v4
with:
distribution: semeru
java-version: 23
java-version: 22
cache: sbt

- name: sbt update
if: matrix.java == 'semeru@23' && steps.setup-java-semeru-23.outputs.cache-hit == 'false'
if: matrix.java == 'semeru@22' && steps.setup-java-semeru-22.outputs.cache-hit == 'false'
shell: bash
run: sbt -v +update

- name: Check that workflows are up to date
shell: bash
run: sbt -v githubWorkflowCheck

- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23'))) && (!(contains(github.event.head_commit.message, 'full CI')))
- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@22'))) && (!(contains(github.event.head_commit.message, 'full CI')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' ci

- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23'))) && (contains(github.event.head_commit.message, 'full CI'))
- if: (!((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@22'))) && (contains(github.event.head_commit.message, 'full CI'))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' ciFull

- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23')) && (!(contains(github.event.head_commit.message, 'full CI')))
- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@22')) && (!(contains(github.event.head_commit.message, 'full CI')))
shell: bash
run: 'sbt -v ''++ ${{ matrix.scala }}'' -J-Xgcpolicy:balanced ci'

- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@23')) && (contains(github.event.head_commit.message, 'full CI'))
- if: ((matrix.java == 'semeru@11') || (matrix.java == 'semeru@21') || (matrix.java == 'semeru@22')) && (contains(github.event.head_commit.message, 'full CI'))
shell: bash
run: 'sbt -v ''++ ${{ matrix.scala }}'' -J-Xgcpolicy:balanced ciFull'

- if: matrix.scala != '3'
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' checkScalafix

- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressLinchk')))
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressLinchk')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' runLincheckTests

- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressMcas')))
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressMcas')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressMcas/Jcstress/run

- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressCore')))
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressCore')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressCore/Jcstress/run

- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressData')))
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressData')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressData/Jcstress/run

- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressExperiments')))
- if: ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && ((contains(github.event.head_commit.message, 'full CI')) || (contains(github.event.head_commit.message, 'stressExperiments')))
shell: bash
run: sbt -v '++ ${{ matrix.scala }}' stressExperiments/Jcstress/run

- name: Upload JCStress results
if: (success() || failure()) && ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@23'))) && (contains(github.event.head_commit.message, 'full CI') || (contains(github.event.head_commit.message, 'stressMcas') || contains(github.event.head_commit.message, 'stressCore') || contains(github.event.head_commit.message, 'stressData') || contains(github.event.head_commit.message, 'stressExperiments')))
if: (success() || failure()) && ((matrix.os == 'macos-14') || ((matrix.os == 'ubuntu-latest') && (matrix.java == 'temurin@22'))) && (contains(github.event.head_commit.message, 'full CI') || (contains(github.event.head_commit.message, 'stressMcas') || contains(github.event.head_commit.message, 'stressCore') || contains(github.event.head_commit.message, 'stressData') || contains(github.event.head_commit.message, 'stressExperiments')))
uses: actions/upload-artifact@v4
with:
name: jcstress-results-${{ matrix.os }}-${{ matrix.scala }}-${{ matrix.java }}
Expand Down
6 changes: 3 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ val scala3 = "3.3.3"
// CI JVM versions:
val jvmOldest = JavaSpec.temurin("11")
val jvmLts = JavaSpec.temurin("21")
val jvmLatest = JavaSpec.temurin("23")
val jvmLatest = JavaSpec.temurin("22")
val jvmTemurins = List(jvmOldest, jvmLts, jvmLatest)
val jvmGraalOldest = JavaSpec(JavaSpec.Distribution.GraalVM("22.3.3"), "11")
val jvmGraalLts = JavaSpec.graalvm("21")
val jvmGraalLatest = JavaSpec.graalvm("23")
val jvmGraalLatest = JavaSpec.graalvm("22")
val jvmGraals = List(jvmGraalOldest, jvmGraalLts, jvmGraalLatest)
val jvmOpenj9Oldest = JavaSpec.semeru("11")
val jvmOpenj9Lts = JavaSpec.semeru("21")
val jvmOpenj9Latest = JavaSpec.semeru("23")
val jvmOpenj9Latest = JavaSpec.semeru("22")
val jvmOpenj9s = List(jvmOpenj9Oldest, jvmOpenj9Lts, jvmOpenj9Latest)

// CI OS versions:
Expand Down

0 comments on commit ab4d83d

Please sign in to comment.