Skip to content

Commit f11a98a

Browse files
authored
Merge pull request #98 from lolgab/update-scala-native-0.4.0
Update Scala Native 0.4.0
2 parents e911b9f + 802b2ff commit f11a98a

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

.travis.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1+
os: linux
12
language: scala
2-
sudo: required
3-
dist: trusty
3+
dist: bionic
44
addons:
55
apt:
66
update: true
77

88
jdk:
9-
- oraclejdk8
9+
- openjdk8
1010

1111
script:
12-
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
1312
- ./mill __.test.run

build.sc

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
import mill._, scalalib._, scalajslib._, scalanativelib._, publish._
22

3+
val dottyVersions = sys.props.get("dottyVersion").toList
4+
5+
val scalaVersions = "2.11.12" :: "2.12.13" :: "2.13.4" :: "3.0.0-M3" :: dottyVersions
6+
val scala2Versions = scalaVersions.filter(_.startsWith("2."))
7+
8+
val scalaJSVersions = for {
9+
scalaV <- scala2Versions
10+
scalaJSV <- Seq("0.6.33", "1.4.0")
11+
} yield (scalaV, scalaJSV)
12+
13+
val scalaNativeVersions = for {
14+
scalaV <- scala2Versions
15+
scalaNativeV <- Seq("0.4.0")
16+
} yield (scalaV, scalaNativeV)
317

418
trait SourcecodeModule extends PublishModule {
519
def artifactName = "sourcecode"
@@ -64,8 +78,8 @@ trait SourcecodeTestModule extends ScalaModule {
6478
}
6579

6680
object sourcecode extends Module {
67-
val dottyVersion = Option(sys.props("dottyVersion"))
68-
object jvm extends Cross[JvmSourcecodeModule]((List("2.11.12", "2.12.8", "2.13.0", "3.0.0-M3") ++ dottyVersion): _*)
81+
val dottyVersion = sys.props.get("dottyVersion")
82+
object jvm extends Cross[JvmSourcecodeModule](scalaVersions: _*)
6983
class JvmSourcecodeModule(val crossScalaVersion: String)
7084
extends SourcecodeMainModule with ScalaModule with SourcecodeModule {
7185

@@ -85,10 +99,7 @@ object sourcecode extends Module {
8599
}
86100
}
87101

88-
object js extends Cross[JsSourcecodeModule](
89-
("2.11.12", "0.6.33"), ("2.12.10", "0.6.33"), ("2.13.1", "0.6.33"),
90-
("2.11.12", "1.0.0"), ("2.12.10", "1.0.0"), ("2.13.1", "1.0.0")
91-
)
102+
object js extends Cross[JsSourcecodeModule](scalaJSVersions: _*)
92103
class JsSourcecodeModule(val crossScalaVersion: String, crossJSVersion: String)
93104
extends SourcecodeMainModule with ScalaJSModule with SourcecodeModule {
94105
def offset = os.up
@@ -103,7 +114,7 @@ object sourcecode extends Module {
103114
}
104115
}
105116

106-
object native extends Cross[NativeSourcecodeModule](("2.11.12", "0.3.9"), ("2.11.12", "0.4.0-M2"))
117+
object native extends Cross[NativeSourcecodeModule](scalaNativeVersions: _*)
107118
class NativeSourcecodeModule(val crossScalaVersion: String, crossScalaNativeVersion: String)
108119
extends SourcecodeMainModule with ScalaNativeModule with SourcecodeModule {
109120
def offset = os.up

mill

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This is a wrapper script, that automatically download mill from GitHub release pages
44
# You can give the required mill version with MILL_VERSION env variable
55
# If no version is given, it falls back to the value of DEFAULT_MILL_VERSION
6-
DEFAULT_MILL_VERSION=0.8.0-13-105f53
6+
DEFAULT_MILL_VERSION=0.9.4-18-82ea87
77

88
set -e
99

0 commit comments

Comments
 (0)