Skip to content

Commit

Permalink
minimize-modules: graphir module removed
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Aug 21, 2023
1 parent 913baec commit 83c38cd
Show file tree
Hide file tree
Showing 63 changed files with 4 additions and 46 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 }} commonJS/test interpreterJS/test parsersJS/test sdkJS/test scJS/test

- name: Publish a JVM snapshot ${{ github.ref }}
if: env.HAS_SECRETS == 'true'
Expand Down
48 changes: 3 additions & 45 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -213,48 +213,6 @@ lazy val common = crossProject(JVMPlatform, JSPlatform)
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)
.settings(
commonDependenies2,
scryptoDependency,
publish / skip := true
)
.jvmSettings(
crossScalaSettings,
libraryDependencies ++= Seq(scalameter)
)
.jsSettings(
crossScalaSettingsJS,
useYarn := true
)
lazy val graphirJS = graphir.js
.enablePlugins(ScalaJSBundlerPlugin)

lazy val interpreter = crossProject(JVMPlatform, JSPlatform)
.in(file("interpreter"))
.dependsOn(common % allConfigDependency)
Expand Down Expand Up @@ -352,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 @@ -362,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 @@ -397,13 +355,13 @@ lazy val scJS = sc.js


lazy val sigma = (project in file("."))
.aggregate(common.jvm, graphir.jvm, interpreter.jvm, parsers.jvm, sc.jvm, sdk.jvm)
.aggregate(common.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, graphir.jvm, interpreter.jvm, parsers.jvm, sc.jvm, sdk.jvm),
inProjects(common.jvm, interpreter.jvm, parsers.jvm, sdk.jvm, sc.jvm),
inConfigurations(Compile))

lazy val rootSettings = Seq(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 83c38cd

Please sign in to comment.