Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI to use graalvm@17 #3773

Merged
merged 1 commit into from
Aug 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 39 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
scala: [3.2.2, 2.12.17, 2.13.10]
java: [temurin@8, temurin@11, temurin@17, graalvm@11]
java: [temurin@8, temurin@11, temurin@17, graalvm@17]
ci: [ciJVM, ciNative, ciJS, ciFirefox, ciChrome]
exclude:
- scala: 3.2.2
Expand All @@ -39,7 +39,7 @@ jobs:
- scala: 2.12.17
java: temurin@17
- scala: 2.12.17
java: graalvm@11
java: graalvm@17
- os: windows-latest
scala: 3.2.2
- os: macos-latest
Expand All @@ -61,7 +61,7 @@ jobs:
- ci: ciJS
java: temurin@17
- ci: ciJS
java: graalvm@11
java: graalvm@17
- os: windows-latest
ci: ciJS
- os: macos-latest
Expand All @@ -71,7 +71,7 @@ jobs:
- ci: ciFirefox
java: temurin@17
- ci: ciFirefox
java: graalvm@11
java: graalvm@17
- os: windows-latest
ci: ciFirefox
- os: macos-latest
Expand All @@ -81,7 +81,7 @@ jobs:
- ci: ciChrome
java: temurin@17
- ci: ciChrome
java: graalvm@11
java: graalvm@17
- os: windows-latest
ci: ciChrome
- os: macos-latest
Expand All @@ -91,7 +91,7 @@ jobs:
- ci: ciNative
java: temurin@17
- ci: ciNative
java: graalvm@11
java: graalvm@17
- os: windows-latest
ci: ciNative
- os: macos-latest
Expand All @@ -101,7 +101,7 @@ jobs:
ci: ciNative
scala: 3.2.2
- os: windows-latest
java: graalvm@11
java: graalvm@17
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -184,26 +184,26 @@ jobs:
shell: bash
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java (graalvm@11)
id: download-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Download Java (graalvm@17)
id: download-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 11
java-version: 17

- name: Setup Java (graalvm@11)
id: setup-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Setup Java (graalvm@17)
id: setup-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-graalvm-11.outputs.jdkFile }}
java-version: 17
jdkFile: ${{ steps.download-java-graalvm-17.outputs.jdkFile }}
cache: sbt

- name: sbt update
if: matrix.java == 'graalvm@11' && steps.setup-java-graalvm-11.outputs.cache-hit == 'false'
if: matrix.java == 'graalvm@17' && steps.setup-java-graalvm-17.outputs.cache-hit == 'false'
shell: bash
run: sbt '++ ${{ matrix.scala }}' reload +update

Expand All @@ -219,7 +219,7 @@ jobs:
run: npm install

- name: Install GraalVM Native Image
if: matrix.java == 'graalvm@11'
if: matrix.java == 'graalvm@17'
shell: bash
run: gu install native-image

Expand Down Expand Up @@ -268,7 +268,7 @@ jobs:
run: example/test-js.sh ${{ matrix.scala }}

- name: Test GraalVM Native Image
if: matrix.scala == '2.13.10' && matrix.java == 'graalvm@11' && matrix.os == 'ubuntu-latest'
if: matrix.scala == '2.13.10' && matrix.java == 'graalvm@17' && matrix.os == 'ubuntu-latest'
shell: bash
run: sbt '++ ${{ matrix.scala }}' graalVMExample/nativeImage graalVMExample/nativeImageRun

Expand Down Expand Up @@ -387,26 +387,26 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java (graalvm@11)
id: download-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Download Java (graalvm@17)
id: download-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 11
java-version: 17

- name: Setup Java (graalvm@11)
id: setup-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Setup Java (graalvm@17)
id: setup-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-graalvm-11.outputs.jdkFile }}
java-version: 17
jdkFile: ${{ steps.download-java-graalvm-17.outputs.jdkFile }}
cache: sbt

- name: sbt update
if: matrix.java == 'graalvm@11' && steps.setup-java-graalvm-11.outputs.cache-hit == 'false'
if: matrix.java == 'graalvm@17' && steps.setup-java-graalvm-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download target directories (3.2.2, ciJVM)
Expand Down Expand Up @@ -631,26 +631,26 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java (graalvm@11)
id: download-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Download Java (graalvm@17)
id: download-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 11
java-version: 17

- name: Setup Java (graalvm@11)
id: setup-java-graalvm-11
if: matrix.java == 'graalvm@11'
- name: Setup Java (graalvm@17)
id: setup-java-graalvm-17
if: matrix.java == 'graalvm@17'
uses: actions/setup-java@v3
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-graalvm-11.outputs.jdkFile }}
java-version: 17
jdkFile: ${{ steps.download-java-graalvm-17.outputs.jdkFile }}
cache: sbt

- name: sbt update
if: matrix.java == 'graalvm@11' && steps.setup-java-graalvm-11.outputs.cache-hit == 'false'
if: matrix.java == 'graalvm@17' && steps.setup-java-graalvm-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Submit Dependencies
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ val LTSJava = JavaSpec.temurin("11")
val LatestJava = JavaSpec.temurin("17")
val ScalaJSJava = OldGuardJava
val ScalaNativeJava = OldGuardJava
val GraalVM = JavaSpec.graalvm("11")
val GraalVM = JavaSpec.graalvm("17")

ThisBuild / githubWorkflowJavaVersions := Seq(OldGuardJava, LTSJava, LatestJava, GraalVM)
ThisBuild / githubWorkflowOSes := Seq(PrimaryOS, Windows, MacOS)
Expand Down
Loading