Skip to content

Commit

Permalink
remove GraalVM from the build of this branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mzuehlke committed Oct 25, 2024
1 parent 93d6ab9 commit 65bdeb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 110 deletions.
90 changes: 1 addition & 89 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-12]
scala: [3.2.2, 2.12.17, 2.13.10]
java:
- temurin@8
- temurin@11
- temurin@17
- [email protected]
java: [temurin@8, temurin@11, temurin@17]
ci: [ciJVM, ciNative, ciJS, ciFirefox, ciChrome]
exclude:
- scala: 3.2.2
Expand All @@ -42,8 +38,6 @@ jobs:
java: temurin@11
- scala: 2.12.17
java: temurin@17
- scala: 2.12.17
java: [email protected]
- os: windows-latest
scala: 3.2.2
- os: macos-12
Expand All @@ -64,8 +58,6 @@ jobs:
java: temurin@11
- ci: ciJS
java: temurin@17
- ci: ciJS
java: [email protected]
- os: windows-latest
ci: ciJS
- os: macos-12
Expand All @@ -74,8 +66,6 @@ jobs:
java: temurin@11
- ci: ciFirefox
java: temurin@17
- ci: ciFirefox
java: [email protected]
- os: windows-latest
ci: ciFirefox
- os: macos-12
Expand All @@ -84,8 +74,6 @@ jobs:
java: temurin@11
- ci: ciChrome
java: temurin@17
- ci: ciChrome
java: [email protected]
- os: windows-latest
ci: ciChrome
- os: macos-12
Expand All @@ -94,8 +82,6 @@ jobs:
java: temurin@11
- ci: ciNative
java: temurin@17
- ci: ciNative
java: [email protected]
- os: windows-latest
ci: ciNative
- os: macos-12
Expand All @@ -104,8 +90,6 @@ jobs:
- os: macos-12
ci: ciNative
scala: 3.2.2
- os: windows-latest
java: [email protected]
runs-on: ${{ matrix.os }}
timeout-minutes: 60
steps:
Expand Down Expand Up @@ -188,29 +172,6 @@ jobs:
shell: bash
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java ([email protected])
id: download-java-graalvm-17.0.12
if: matrix.java == '[email protected]'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 17.0.12

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

- name: sbt update
if: matrix.java == '[email protected]' && steps.setup-java-graalvm-17.0.12.outputs.cache-hit == 'false'
shell: bash
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Setup NodeJS v18 LTS
if: matrix.ci == 'ciJS'
uses: actions/setup-node@v3
Expand Down Expand Up @@ -266,11 +227,6 @@ jobs:
shell: bash
run: example/test-js.sh ${{ matrix.scala }}

- name: Test GraalVM Native Image
if: matrix.scala == '2.13.10' && matrix.java == '[email protected]' && matrix.os == 'ubuntu-latest'
shell: bash
run: sbt '++ ${{ matrix.scala }}' graalVMExample/nativeImage graalVMExample/nativeImageRun

- name: Test Example Native App Using Binary
if: matrix.ci == 'ciNative' && matrix.os == 'ubuntu-latest'
shell: bash
Expand Down Expand Up @@ -386,28 +342,6 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java ([email protected])
id: download-java-graalvm-17.0.12
if: matrix.java == '[email protected]'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 17.0.12

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

- name: sbt update
if: matrix.java == '[email protected]' && steps.setup-java-graalvm-17.0.12.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download target directories (3.2.2, ciJVM)
uses: actions/download-artifact@v3
with:
Expand Down Expand Up @@ -635,27 +569,5 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Download Java ([email protected])
id: download-java-graalvm-17.0.12
if: matrix.java == '[email protected]'
uses: typelevel/download-java@v2
with:
distribution: graalvm
java-version: 17.0.12

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

- name: sbt update
if: matrix.java == '[email protected]' && steps.setup-java-graalvm-17.0.12.outputs.cache-hit == 'false'
run: sbt '++ ${{ matrix.scala }}' reload +update

- name: Submit Dependencies
uses: scalacenter/sbt-dependency-submission@v2
34 changes: 13 additions & 21 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ val LTSJava = JavaSpec.temurin("11")
val LatestJava = JavaSpec.temurin("17")
val ScalaJSJava = OldGuardJava
val ScalaNativeJava = OldGuardJava
val GraalVM = JavaSpec.graalvm("17.0.12")

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

ThisBuild / githubWorkflowBuildPreamble ++= Seq(
Expand Down Expand Up @@ -189,12 +188,6 @@ ThisBuild / githubWorkflowBuild := Seq("JVM", "JS", "Native").map { platform =>
name = Some("Test Example JavaScript App Using Node"),
cond = Some(s"matrix.ci == 'ciJS' && matrix.os == '$PrimaryOS'")
),
WorkflowStep.Sbt(
List("graalVMExample/nativeImage", "graalVMExample/nativeImageRun"),
name = Some("Test GraalVM Native Image"),
cond = Some(
s"matrix.scala == '$Scala213' && matrix.java == '${GraalVM.render}' && matrix.os == '$PrimaryOS'")
),
WorkflowStep.Run(
List("example/test-native.sh ${{ matrix.scala }}"),
name = Some("Test Example Native App Using Binary"),
Expand Down Expand Up @@ -223,7 +216,7 @@ ThisBuild / githubWorkflowBuildMatrixExclusions := {
val scalaJavaFilters = for {
scala <- (ThisBuild / githubWorkflowScalaVersions).value.filterNot(Set(Scala213))
java <- (ThisBuild / githubWorkflowJavaVersions).value.filterNot(Set(OldGuardJava))
if !(scala == Scala3 && (java == LatestJava || java == GraalVM))
if !(scala == Scala3 && java == LatestJava)
} yield MatrixExclude(Map("scala" -> scala, "java" -> java.render))

val windowsAndMacScalaFilters =
Expand Down Expand Up @@ -265,12 +258,7 @@ ThisBuild / githubWorkflowBuildMatrixExclusions := {
)
}

// Nice-to-haves but unreliable in CI
val flakyFilters = Seq(
MatrixExclude(Map("os" -> Windows, "java" -> GraalVM.render))
)

scalaJavaFilters ++ windowsAndMacScalaFilters ++ jsScalaFilters ++ jsJavaAndOSFilters ++ nativeJavaAndOSFilters ++ flakyFilters
scalaJavaFilters ++ windowsAndMacScalaFilters ++ jsScalaFilters ++ jsJavaAndOSFilters ++ nativeJavaAndOSFilters
}

lazy val useJSEnv =
Expand Down Expand Up @@ -914,8 +902,8 @@ lazy val testsJVM = tests
)

/**
* Implementations of standard functionality (e.g. Semaphore, Console, Queue) purely in terms
* of the typeclasses, with no dependency on IO. In most cases, the *tests* for these
* Implementations of standard functionality (e.g. Semaphore, Console, Queue) purely in terms of
* the typeclasses, with no dependency on IO. In most cases, the *tests* for these
* implementations will require IO, and thus those tests will be located within the core
* project.
*/
Expand Down Expand Up @@ -992,10 +980,14 @@ lazy val std = crossProject(JSPlatform, JVMPlatform, NativePlatform)
ProblemFilters.exclude[MissingClassProblem](
"cats.effect.std.Dispatcher$Mode$Sequential$"),
// #4052, private classes
ProblemFilters.exclude[MissingTypesProblem]("cats.effect.std.Dispatcher$RegState$Unstarted$"),
ProblemFilters.exclude[DirectMissingMethodProblem]("cats.effect.std.Dispatcher#RegState#Unstarted.*"),
ProblemFilters.exclude[FinalMethodProblem]("cats.effect.std.Dispatcher#RegState#Unstarted.toString"),
ProblemFilters.exclude[DirectMissingMethodProblem]("cats.effect.std.Dispatcher#Registration#Primary.*"),
ProblemFilters.exclude[MissingTypesProblem](
"cats.effect.std.Dispatcher$RegState$Unstarted$"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"cats.effect.std.Dispatcher#RegState#Unstarted.*"),
ProblemFilters.exclude[FinalMethodProblem](
"cats.effect.std.Dispatcher#RegState#Unstarted.toString"),
ProblemFilters.exclude[DirectMissingMethodProblem](
"cats.effect.std.Dispatcher#Registration#Primary.*")
)
)
.jsSettings(
Expand Down

0 comments on commit 65bdeb6

Please sign in to comment.