Skip to content

Commit

Permalink
Update JVM used on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Dec 27, 2024
1 parent e3ff6e3 commit 7d958bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: 8
jvm: 21
- name: Compile
run: ./mill -i __.test.compile
- name: Test
Expand All @@ -38,7 +38,7 @@ jobs:
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: 8
jvm: 21
- run: .github/scripts/gpg-setup.sh
shell: bash
env:
Expand Down
7 changes: 7 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ object `windows-jni-utils` extends MavenModule with JniUtilsPublishVersion with
if (dir.getName == "jre") dir.getParent
else value
}

def javacOptions = super.javacOptions() ++ Seq(
"--release", "8"
)
}

object `windows-jni-utils-graalvm` extends WindowsUtils with JniUtilsPublishModule {
Expand Down Expand Up @@ -79,6 +83,9 @@ object headers extends Module {

trait WindowsUtils extends MavenModule with JniUtilsPublishVersion {
def compileIvyDeps = Agg(Deps.svm)
def javacOptions = super.javacOptions() ++ Seq(
"--release", "8"
)
}

def publishSonatype(tasks: mill.main.Tasks[PublishModule.PublishData]) =
Expand Down

0 comments on commit 7d958bc

Please sign in to comment.