Skip to content

Commit

Permalink
Merge pull request #921 from ScorexFoundation/v5.0.12-RC
Browse files Browse the repository at this point in the history
Release Candidate v5.0.12
  • Loading branch information
aslesarenko authored Oct 2, 2023
2 parents a61c9ef + ca85d0f commit 50dce5e
Show file tree
Hide file tree
Showing 335 changed files with 1,590 additions and 1,743 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}

- name: Runs tests and collect coverage
run: sbt -jvm-opts ci/ci.jvmopts ++${{ matrix.scala }} commonJS/test corelibJS/test interpreterJS/test graphirJS/test sdkJS/test scJS/test
run: sbt -jvm-opts ci/ci.jvmopts ++${{ matrix.scala }} coreJS/test interpreterJS/test parsersJS/test sdkJS/test scJS/test

- name: Publish a JVM snapshot ${{ github.ref }}
if: env.HAS_SECRETS == 'true'
Expand Down
61 changes: 10 additions & 51 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,12 @@ lazy val commonDependenies2 = libraryDependencies ++= Seq(

val sigmajsCryptoFacadeVersion = "0.0.7"

lazy val common = crossProject(JVMPlatform, JSPlatform)
.in(file("common"))
lazy val core = crossProject(JVMPlatform, JSPlatform)
.in(file("core"))
.settings(commonSettings ++ testSettings2,
commonDependenies2,
testingDependencies2,
scorexUtilDependency,
publish / skip := true
)
.jvmSettings( crossScalaSettings )
Expand All @@ -209,59 +210,17 @@ lazy val common = crossProject(JVMPlatform, JSPlatform)
),
useYarn := true
)
lazy val commonJS = common.js
.enablePlugins(ScalaJSBundlerPlugin)

lazy val corelib = crossProject(JVMPlatform, JSPlatform)
.in(file("core-lib"))
.dependsOn(common % allConfigDependency)
.settings(commonSettings ++ testSettings2,
commonDependenies2,
testingDependencies2,
crossScalaSettings,
scryptoDependency,
publish / skip := true
)
.jvmSettings(
crossScalaSettings
)
.jsSettings(
crossScalaSettingsJS,
libraryDependencies ++= Seq(
"org.scala-js" %%% "scala-js-macrotask-executor" % "1.0.0"
),
useYarn := true
)
lazy val corelibJS = corelib.js
.enablePlugins(ScalaJSBundlerPlugin)

lazy val graphir = crossProject(JVMPlatform, JSPlatform)
.in(file("graph-ir"))
.dependsOn(common % allConfigDependency, corelib % allConfigDependency)
.settings(
commonDependenies2,
scryptoDependency,
publish / skip := true
)
.jvmSettings(
crossScalaSettings,
libraryDependencies ++= Seq(scalameter)
)
.jsSettings(
crossScalaSettingsJS,
useYarn := true
)
lazy val graphirJS = graphir.js
lazy val coreJS = core.js
.enablePlugins(ScalaJSBundlerPlugin)

lazy val interpreter = crossProject(JVMPlatform, JSPlatform)
.in(file("interpreter"))
.dependsOn(corelib % allConfigDependency)
.dependsOn(core % allConfigDependency)
.settings(
commonSettings ++ testSettings2,
commonDependenies2,
testingDependencies2,
scorexUtilDependency, fastparseDependency, circeDependency,
scorexUtilDependency, fastparseDependency, circeDependency, scryptoDependency,
publish / skip := true
)
.jvmSettings( crossScalaSettings )
Expand Down Expand Up @@ -319,7 +278,7 @@ lazy val parsersJS = parsers.js

lazy val sdk = crossProject(JVMPlatform, JSPlatform)
.in(file("sdk"))
.dependsOn(corelib % allConfigDependency, interpreter % allConfigDependency, parsers % allConfigDependency)
.dependsOn(core % allConfigDependency, interpreter % allConfigDependency, parsers % allConfigDependency)
.settings(commonSettings ++ testSettings2,
commonDependenies2,
testingDependencies2,
Expand Down Expand Up @@ -351,7 +310,6 @@ lazy val sdkJS = sdk.js
lazy val sc = crossProject(JVMPlatform, JSPlatform)
.in(file("sc"))
.dependsOn(
graphir % allConfigDependency,
interpreter % allConfigDependency,
parsers % allConfigDependency,
sdk % allConfigDependency
Expand All @@ -361,6 +319,7 @@ lazy val sc = crossProject(JVMPlatform, JSPlatform)
commonDependenies2,
testingDependencies2,
scorexUtilDependency, fastparseDependency, circeDependency,
scryptoDependency,
Test / parallelExecution := false
)
.settings(publish / skip := true)
Expand Down Expand Up @@ -396,13 +355,13 @@ lazy val scJS = sc.js


lazy val sigma = (project in file("."))
.aggregate(common.jvm, corelib.jvm, graphir.jvm, interpreter.jvm, parsers.jvm, sc.jvm, sdk.jvm)
.aggregate(core.jvm, interpreter.jvm, parsers.jvm, sdk.jvm, sc.jvm)
.settings(libraryDefSettings, rootSettings)
.settings(publish / aggregate := false)
.settings(publishLocal / aggregate := false)

lazy val aggregateCompile = ScopeFilter(
inProjects(common.jvm, corelib.jvm, graphir.jvm, interpreter.jvm, parsers.jvm, sc.jvm, sdk.jvm),
inProjects(core.jvm, interpreter.jvm, parsers.jvm, sdk.jvm, sc.jvm),
inConfigurations(Compile))

lazy val rootSettings = Seq(
Expand Down
140 changes: 0 additions & 140 deletions common/shared/src/main/scala/scalan/TypeDesc.scala

This file was deleted.

26 changes: 0 additions & 26 deletions common/shared/src/main/scala/scalan/package.scala

This file was deleted.

This file was deleted.

Loading

0 comments on commit 50dce5e

Please sign in to comment.