forked from http4s/http4s-io.g8
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
40 lines (36 loc) · 1.41 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// This build is for this Giter8 template.
// To test the template run `g8` or `g8Test` from the sbt session.
// See https://www.foundweekends.org/giter8/testing.html#Using+the+Giter8Plugin for more details.
ThisBuild / githubWorkflowBuild := Seq(
WorkflowStep.Sbt(
List("g8Test"),
name = Some("Test generated template")
),
WorkflowStep.Run(
List(
"cd target/sbt-test/http4s-g8/scripted",
"sbt assembly",
"gu install native-image",
"cat native-image-readme.md | grep 'native-image -H*' | sh"
),
cond = Some("startsWith(matrix.java, 'graalvm-')"),
name = Some("Build native assembly")
)
)
val PrimaryOS = "ubuntu-latest"
val MacOS = "macos-latest"
ThisBuild / githubWorkflowOSes := Seq(PrimaryOS, MacOS)
ThisBuild / githubWorkflowPublishTargetBranches := Seq.empty
val PrimaryJava = JavaSpec.temurin("8")
val LTSJava = JavaSpec.temurin("17")
val GraalVM11 = JavaSpec.graalvm("20.3.1", "11")
ThisBuild / githubWorkflowJavaVersions := Seq(PrimaryJava, LTSJava, GraalVM11)
lazy val root = project.in(file("."))
.settings(
name := "http4s-g8",
test in Test := {
val _ = (g8Test in Test).toTask("").value
},
scriptedLaunchOpts ++= List("-Xms1024m", "-Xmx1024m", "-XX:ReservedCodeCacheSize=128m", "-Xss2m", "-Dfile.encoding=UTF-8"),
resolvers += Resolver.url("typesafe", url("https://repo.typesafe.com/typesafe/ivy-releases/"))(Resolver.ivyStylePatterns),
)