Skip to content

Commit

Permalink
Fix Scala 2.12 cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
adpi2 committed Oct 20, 2022
1 parent 2696f18 commit ec5c0d4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: ./bin/scalafmt --test
cross-compilation:
name: Cross Compilation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: coursier/[email protected]
with:
app: sbt
- run: sbt +compile
test:
strategy:
fail-fast: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import java.{util => ju}
import scala.jdk.CollectionConverters._
import scala.tools.nsc.reporters.StoreReporter
import scala.util.control.NonFatal
import scala.annotation

final class ExpressionCompilerBridge {
def run(
Expand All @@ -31,7 +32,7 @@ final class ExpressionCompilerBridge {
) ++ options :+ sourceFile.toString

val command = new CompilerCommand(args, errorConsumer.accept(_))
val reporter = new StoreReporter(command.settings)
val reporter = new StoreReporter(): @annotation.nowarn()
val global = new ExpressionGlobal(
command.settings,
reporter,
Expand Down

0 comments on commit ec5c0d4

Please sign in to comment.