forked from scala-cli/scala-js-cli
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into update/svm-22.3.3
- Loading branch information
Showing
7 changed files
with
72 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: CI | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
tags: | ||
- "v*" | ||
pull_request: | ||
|
@@ -21,7 +21,7 @@ jobs: | |
with: | ||
jvm: "temurin:17" | ||
- name: Test CLI | ||
run: ./mill -i 'tests[_].test' | ||
run: ./mill -i 'tests.test' | ||
|
||
publish: | ||
needs: test | ||
|
@@ -51,7 +51,6 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-20.04, windows-latest, macos-latest] | ||
scalaJsVersion: ["1.9.0", "1.10.0", "1.10.1", "1.11.0", "1.12.0", "1.13.1"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -62,22 +61,18 @@ jobs: | |
with: | ||
jvm: temurin:17 | ||
- run: | | ||
./mill -i "native[$scalaJsVersion].writeNativeImageScript" generate.sh "" && \ | ||
./mill -i "native.writeNativeImageScript" generate.sh "" && \ | ||
./generate.sh && \ | ||
./mill -i "tests[$scalaJsVersion].test.native" && \ | ||
./mill -i "native[$scalaJsVersion].copyToArtifacts" artifacts/ | ||
./mill -i "tests.test.native" && \ | ||
./mill -i "native.copyToArtifacts" artifacts/ | ||
if: runner.os != 'Windows' | ||
env: | ||
scalaJsVersion: ${{ matrix.scalaJsVersion }} | ||
- run: | | ||
@call ./mill.bat -i "native[%scalaJsVersion%].writeNativeImageScript" generate.bat "" | ||
@call ./mill.bat -i "native.writeNativeImageScript" generate.bat "" | ||
@call generate.bat | ||
@call ./mill.bat -i "tests[%scalaJsVersion%].test.native" | ||
@call ./mill.bat -i "native[%scalaJsVersion%].copyToArtifacts" artifacts/ | ||
@call ./mill.bat -i "tests.test.native" | ||
@call ./mill.bat -i "native.copyToArtifacts" artifacts/ | ||
shell: cmd | ||
if: runner.os == 'Windows' | ||
env: | ||
scalaJsVersion: ${{ matrix.scalaJsVersion }} | ||
- uses: actions/[email protected] | ||
with: | ||
name: launcher-${{ matrix.os }} | ||
|
@@ -94,8 +89,6 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scalaJsVersion: ["1.9.0", "1.10.0", "1.10.1", "1.11.0", "1.12.0", "1.13.1"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -106,12 +99,10 @@ jobs: | |
with: | ||
jvm: temurin:17 | ||
- run: | | ||
./mill -i "native-static[$scalaJsVersion].writeNativeImageScript" generate.sh "" && \ | ||
./mill -i "native-static.writeNativeImageScript" generate.sh "" && \ | ||
./generate.sh && \ | ||
./mill -i "tests[$scalaJsVersion].test.nativeStatic" && \ | ||
./mill -i "native-static[$scalaJsVersion].copyToArtifacts" artifacts/ | ||
env: | ||
scalaJsVersion: ${{ matrix.scalaJsVersion }} | ||
./mill -i "tests.test.nativeStatic" && \ | ||
./mill -i "native-static.copyToArtifacts" artifacts/ | ||
- uses: actions/[email protected] | ||
with: | ||
name: launcher-${{ matrix.os }}-static | ||
|
@@ -128,8 +119,6 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
scalaJsVersion: ["1.9.0", "1.10.0", "1.10.1", "1.11.0", "1.12.0", "1.13.1"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
|
@@ -140,12 +129,10 @@ jobs: | |
with: | ||
jvm: temurin:17 | ||
- run: | | ||
./mill -i "native-mostly-static[$scalaJsVersion].writeNativeImageScript" generate.sh "" && \ | ||
./mill -i "native-mostly-static.writeNativeImageScript" generate.sh "" && \ | ||
./generate.sh && \ | ||
./mill -i "tests[$scalaJsVersion].test.nativeStatic" && \ | ||
./mill -i "native-mostly-static[$scalaJsVersion].copyToArtifacts" artifacts/ | ||
env: | ||
scalaJsVersion: ${{ matrix.scalaJsVersion }} | ||
./mill -i "tests.test.nativeStatic" && \ | ||
./mill -i "native-mostly-static.copyToArtifacts" artifacts/ | ||
- uses: actions/[email protected] | ||
with: | ||
name: launcher-${{ matrix.os }}-mostly-static | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.10.12 | ||
0.11.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
cli/scala-js-1.9/org/scalajs/cli/internal/ModuleSplitStyleParser.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.scalajs.cli.internal | ||
|
||
import org.scalajs.linker.interface.ESVersion | ||
|
||
import java.util.Locale | ||
|
||
object EsVersionParser { | ||
def parse(esVersion: String): ESVersion = | ||
esVersion.trim.toLowerCase(Locale.ROOT) match { | ||
case "es5_1" => ESVersion.ES5_1 | ||
case "es2015" => ESVersion.ES2015 | ||
case "es2016" => ESVersion.ES2016 | ||
case "es2017" => ESVersion.ES2017 | ||
case "es2018" => ESVersion.ES2018 | ||
case "es2019" => ESVersion.ES2019 | ||
case "es2020" => ESVersion.ES2020 | ||
case "es2021" => ESVersion.ES2021 | ||
case unknown => throw new IllegalArgumentException(s"Warning: unrecognized argument: $unknown for --esVersion parameter") | ||
} | ||
|
||
val All: List[ESVersion] = | ||
List(ESVersion.ES5_1, ESVersion.ES2015, ESVersion.ES2016, ESVersion.ES2017, ESVersion.ES2018, ESVersion.ES2019, ESVersion.ES2020, ESVersion.ES2021) | ||
} |
File renamed without changes.