Skip to content

Commit

Permalink
Pass custom JVM home when building compiler (VirtusLab#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jul 6, 2023
1 parent d50074c commit 671d619
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/buildBisect.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ jobs:

- uses: coursier/cache-action@v6.4
- uses: VirtusLab/scala-cli-setup@v1.0.1
with:
jvm: 8

- name: "Bisect project"
shell: bash
Expand Down
10 changes: 9 additions & 1 deletion scripts/bisect.scala
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,15 @@ object ValidationScript:
|scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | grep . | tail -n 2 | head -n 1)
|echo "ScalaVersion=$${scalaVersion}"
|rm -r out
|sbt "clean; set every sonatypePublishToBundle := Some(\"CommunityBuildRepo\" at \"$mavenRepo\"); ${scala3Project}/publish"
|
|JVM_HOME_SBT=""
|if [[ -v CI && -z "$${JAVA_HOME_8_X64}" ]]; then
| echo "Java 8 HOME not set"; exit 1;
|else
| JVM_HOME_SBT="--java-home=$${JAVA_HOME_8_X64}"
|fi
|
|sbt $${JVM_HOME_SBT} "clean; set every sonatypePublishToBundle := Some(\"CommunityBuildRepo\" at \"$mavenRepo\"); ${scala3Project}/publish"
|${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion"
""".stripMargin)
}
Expand Down

0 comments on commit 671d619

Please sign in to comment.