Skip to content

Commit a19e09a

Browse files
authored
Merge pull request #508 from sideeffffect/scala-native-0.5.x
2 parents db787b1 + 5a5adf3 commit a19e09a

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
build:
2727
name: Build and Test
2828
strategy:
29+
fail-fast: false
2930
matrix:
3031
os: [ubuntu-latest]
3132
scala: [2.12, 2.13, 3]
@@ -252,5 +253,5 @@ jobs:
252253
- name: Submit Dependencies
253254
uses: scalacenter/sbt-dependency-submission@v2
254255
with:
255-
modules-ignore: rootjs_2.12 rootjs_2.13 rootjs_3 tests_sjs1_2.12 tests_sjs1_2.13 tests_sjs1_3 rootjvm_2.12 rootjvm_2.13 rootjvm_3 rootnative_2.12 rootnative_2.13 rootnative_3 demo_2.12 demo_2.13 demo_3 tests_2.12 tests_2.13 tests_3 demo_native0.4_2.12 demo_native0.4_2.13 demo_native0.4_3 tests_native0.4_2.12 tests_native0.4_2.13 tests_native0.4_3 demo_sjs1_2.12 demo_sjs1_2.13 demo_sjs1_3
256+
modules-ignore: rootjs_2.12 rootjs_2.13 rootjs_3 tests_sjs1_2.12 tests_sjs1_2.13 tests_sjs1_3 rootjvm_2.12 rootjvm_2.13 rootjvm_3 rootnative_2.12 rootnative_2.13 rootnative_3 demo_2.12 demo_2.13 demo_3 tests_2.12 tests_2.13 tests_3 demo_native0.5_2.12 demo_native0.5_2.13 demo_native0.5_3 tests_native0.5_2.12 tests_native0.5_2.13 tests_native0.5_3 demo_sjs1_2.12 demo_sjs1_2.13 demo_sjs1_3
256257
configs-ignore: test scala-tool scala-doc-tool test-internal

.jvmopts

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
-Xmx4g
22
-Xss4m
3-
-XX:MaxMetaspaceSize=1g
4-
-XX:ReservedCodeCacheSize=512m
5-
-XX:+UseParallelGC
63
-Dfile.encoding=UTF8
4+
-XX:+PrintCommandLineFlags

build.sbt

+14-11
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ ThisBuild / crossScalaVersions := Seq("2.12.17", scala213, scala3)
55

66
ThisBuild / tlBaseVersion := "2.5"
77

8+
ThisBuild / githubWorkflowBuildMatrixFailFast := Some(false)
9+
810
val javaDistro = JavaSpec.corretto("11")
911
ThisBuild / githubWorkflowJavaVersions := Seq(javaDistro)
1012

@@ -23,7 +25,7 @@ ThisBuild / githubWorkflowBuildMatrixInclusions +=
2325
)
2426

2527
val tzdbVersion = "2019c"
26-
val scalajavaLocalesVersion = "1.5.1"
28+
val scalajavaLocalesVersion = "1.5.4"
2729
Global / onChangedBuildSource := ReloadOnSourceChanges
2830

2931
lazy val downloadFromZip: TaskKey[Unit] =
@@ -142,7 +144,7 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
142144
.settings(commonSettings)
143145
.settings(
144146
name := "scala-java-time",
145-
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.2")
147+
libraryDependencies += ("org.portable-scala" %%% "portable-scala-reflect" % "1.1.3")
146148
.cross(CrossVersion.for3Use2_13)
147149
)
148150
.jsSettings(
@@ -160,6 +162,7 @@ lazy val core = crossProject(JVMPlatform, JSPlatform, NativePlatform)
160162
)
161163
)
162164
.nativeSettings(
165+
scalacOptions += "-P:scalanative:genStaticForwardersForNonTopLevelObjects",
163166
Compile / sourceGenerators += Def.task {
164167
val srcDirs = (Compile / sourceDirectories).value
165168
val destinationDir = (Compile / sourceManaged).value
@@ -175,9 +178,9 @@ lazy val tzdb = crossProject(JVMPlatform, JSPlatform, NativePlatform)
175178
.in(file("tzdb"))
176179
.settings(commonSettings)
177180
.settings(
178-
name := "scala-java-time-tzdb",
179-
includeTTBP := true,
180-
dbVersion := TzdbPlugin.Version(tzdbVersion),
181+
name := "scala-java-time-tzdb",
182+
includeTTBP := true,
183+
dbVersion := TzdbPlugin.Version(tzdbVersion)
181184
)
182185
.jsSettings(
183186
Compile / sourceGenerators += Def.task {
@@ -209,7 +212,7 @@ lazy val tests = crossProject(JVMPlatform, JSPlatform, NativePlatform)
209212
name := "tests",
210213
Keys.`package` := file(""),
211214
libraryDependencies +=
212-
"org.scalatest" %%% "scalatest" % "3.2.14" % Test,
215+
"org.scalatest" %%% "scalatest" % "3.2.18" % Test,
213216
scalacOptions ~= (_.filterNot(
214217
Set("-Wnumeric-widen", "-Ywarn-numeric-widen", "-Ywarn-value-discard", "-Wvalue-discard")
215218
))
@@ -246,12 +249,12 @@ lazy val demo = crossProject(JSPlatform, JVMPlatform, NativePlatform)
246249
.dependsOn(core)
247250
.enablePlugins(TzdbPlugin, NoPublishPlugin)
248251
.settings(
249-
name := "demo",
250-
Keys.`package` := file(""),
251-
zonesFilter := zonesFilterFn,
252-
dbVersion := TzdbPlugin.Version(tzdbVersion),
252+
name := "demo",
253+
Keys.`package` := file(""),
254+
zonesFilter := zonesFilterFn,
255+
dbVersion := TzdbPlugin.Version(tzdbVersion),
253256
// delegate test to run, so that it is invoked during test step in ci
254-
Test / test := (Compile / run).toTask("").value
257+
Test / test := (Compile / run).toTask("").value
255258
)
256259
.jsSettings(
257260
scalaJSUseMainModuleInitializer := true

project/plugins.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ addSbtPlugin("org.typelevel" % "sbt-typelevel-ci-release" % "0.7.1")
88

99
addSbtPlugin("org.portable-scala" % "sbt-scala-native-crossproject" % "1.3.2")
1010

11-
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.4.17")
11+
addSbtPlugin("org.scala-native" % "sbt-scala-native" % "0.5.3")

0 commit comments

Comments
 (0)