File tree Expand file tree Collapse file tree 4 files changed +22
-6
lines changed
airframe/.jvm/src/main/scala/wvlet/airframe/lifecycle Expand file tree Collapse file tree 4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,11 @@ jobs:
27
27
- name : Build for Scala.js 0.6.x
28
28
env :
29
29
PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
30
- run : SCALA_JS_VERSION=0.6.31 ./sbt "projectJS/publishSigned"
30
+ run : SCALA_JS_VERSION=0.6.31 ./sbt "; + projectJS/publishSigned"
31
31
- name : Build for Scala.js 1.0.x
32
32
env :
33
33
PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
34
- run : SCALA_JS_VERSION=1.0.0-RC2 ./sbt "projectJS/publishSigned"
34
+ run : SCALA_JS_VERSION=1.0.0-RC2 ./sbt "; + projectJS/publishSigned"
35
35
- name : Release to Sonatype
36
36
env :
37
37
SONATYPE_USERNAME : ' ${{ secrets.SONATYPE_USER }}'
Original file line number Diff line number Diff line change 83
83
- name : Scala.js test
84
84
# A workaround for Scala.js linker error
85
85
run : ./sbt "; airspecJS/test:fastOptJS; projectJS/test"
86
+ test_js_2_13 :
87
+ name : Scala.js with Scala 2.13
88
+ runs-on : ubuntu-latest
89
+ steps :
90
+ - uses : actions/checkout@v1
91
+ - uses : olafurpg/setup-scala@v5
92
+ with :
93
+ java-version : adopt@1.11
94
+ - uses : actions/cache@v1
95
+ with :
96
+ path : ~/.cache
97
+ key : ${{ runner.os }}-scala-js-${{ hashFiles('**/*.sbt') }}
98
+ restore-keys : ${{ runner.os }}-scala-js-
99
+ - name : Scala.js test
100
+ # A workaround for Scala.js linker error
101
+ run : ./sbt ++2.13.1 "; airspecJS/test:fastOptJS; projectJS/test"
Original file line number Diff line number Diff line change 13
13
*/
14
14
package wvlet .airframe .lifecycle
15
15
16
- import java .util .concurrent .atomic .AtomicInteger
17
-
18
16
import wvlet .log .AirframeLogManager
19
17
20
18
import scala .collection .mutable
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ val SCALA_2_13 = "2.13.1"
6
6
7
7
val untilScala2_12 = SCALA_2_12 :: SCALA_2_11 :: Nil
8
8
val targetScalaVersions = SCALA_2_13 :: untilScala2_12
9
+ val exceptScala2_11 = SCALA_2_13 :: SCALA_2_12 :: Nil
9
10
10
11
val SCALATEST_VERSION = " 3.0.8"
11
12
val SCALACHECK_VERSION = " 1.14.3"
@@ -67,6 +68,7 @@ val runTestSequentially = Seq[Setting[_]](parallelExecution in Test := false)
67
68
publishTo in ThisBuild := sonatypePublishToBundle.value
68
69
69
70
val jsBuildSettings = Seq [Setting [_]](
71
+ crossScalaVersions := exceptScala2_11,
70
72
coverageEnabled := false
71
73
// Workaround for ' JSCom has been closed' issue
72
74
// parallelExecution in ThisBuild := false
@@ -153,7 +155,7 @@ lazy val jvmProjects2_12: Seq[ProjectReference] = Seq(
153
155
examples
154
156
)
155
157
156
- // Scala.js build (only for Scala 2.12)
158
+ // Scala.js build (only for Scala 2.12 + 2.13 )
157
159
lazy val jsProjects : Seq [ProjectReference ] = Seq (
158
160
airframeJS,
159
161
surfaceJS,
@@ -218,7 +220,7 @@ lazy val projectJS =
218
220
project
219
221
.settings(
220
222
noPublish,
221
- crossScalaVersions := Seq ( SCALA_2_12 )
223
+ crossScalaVersions := exceptScala2_11
222
224
)
223
225
.aggregate(jsProjects : _* )
224
226
You can’t perform that action at this time.
0 commit comments