-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleanup the build.sbt * Allow riddlLib to generate a universal package * Add a "packageArtifacts" command alias for 5 artifacts * Use "packageArtifacts" in workflow to build them * Fix the paths in workflow to collect the five artifacts
- Loading branch information
reidspencer
committed
Jan 12, 2025
1 parent
4bc3443
commit a29397b
Showing
2 changed files
with
50 additions
and
43 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
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 |
---|---|---|
|
@@ -294,6 +294,39 @@ val diagrams = diagrams_cp.jvm | |
val diagramsJS = diagrams_cp.js | ||
val diagramsNative = diagrams_cp.native | ||
|
||
lazy val riddlLib_cp: CrossProject = CrossModule("riddlLib", "riddl-lib")(JS, JVM, Native) | ||
.dependsOn( | ||
cpDep(utils_cp), | ||
cpDep(language_cp), | ||
cpDep(passes_cp), | ||
cpDep(diagrams_cp) | ||
) | ||
.configure(With.GithubPublishing) | ||
.configure(With.typical) | ||
.settings( | ||
description := "Bundling of essential RIDDL libraries" | ||
) | ||
.jvmConfigure(With.coverage(50)) | ||
.jvmConfigure(With.MiMa("0.57.0")) | ||
.jvmConfigure( | ||
With.packagingUniversal( | ||
maintainerEmail = "[email protected]", | ||
pkgName = "riddlLib", | ||
pkgSummary = "Library for RIDDL language, Universal packaging", | ||
pkgDescription = "" | ||
) | ||
) | ||
.jvmSettings( | ||
coverageExcludedFiles := """<empty>;$anon""" | ||
) | ||
.jsConfigure(With.js("RIDDL: diagrams", withCommonJSModule = true)) | ||
.jsConfigure(With.noMiMa) | ||
.nativeConfigure(With.native(mode = "fast", buildTarget = "static")) | ||
.nativeConfigure(With.noMiMa) | ||
val riddlLib = riddlLib_cp.jvm | ||
val riddlLibJS = riddlLib_cp.js | ||
val riddlLibNative = riddlLib_cp.native | ||
|
||
val Commands = config("commands") | ||
lazy val commands_cp: CrossProject = CrossModule("commands", "riddl-commands")(JVM, Native) | ||
.dependsOn(cpDep(utils_cp), cpDep(language_cp), cpDep(passes_cp), cpDep(diagrams_cp)) | ||
|
@@ -326,34 +359,8 @@ lazy val commands_cp: CrossProject = CrossModule("commands", "riddl-commands")(J | |
) | ||
) | ||
val commands: Project = commands_cp.jvm | ||
// val commandsJS: Project = commands_cp.js | ||
val commandsNative = riddlLib_cp.native | ||
|
||
lazy val riddlLib_cp: CrossProject = CrossModule("riddlLib", "riddl-lib")(JS, JVM, Native) | ||
.dependsOn( | ||
cpDep(utils_cp), | ||
cpDep(language_cp), | ||
cpDep(passes_cp), | ||
cpDep(diagrams_cp) | ||
) /*, cpDep(commands_cp) */ | ||
.configure(With.GithubPublishing) | ||
.configure(With.typical) | ||
.settings( | ||
description := "Bundling of essential RIDDL libraries" | ||
) | ||
.jvmConfigure(With.coverage(50)) | ||
.jvmConfigure(With.MiMa("0.57.0")) | ||
.jvmSettings( | ||
coverageExcludedFiles := """<empty>;$anon""" | ||
) | ||
.jsConfigure(With.js("RIDDL: diagrams", withCommonJSModule = true)) | ||
.jsConfigure(With.noMiMa) | ||
.nativeConfigure(With.native(mode = "fast")) | ||
.nativeConfigure(With.noMiMa) | ||
val riddlLib = riddlLib_cp.jvm | ||
val riddlLibJS = riddlLib_cp.js | ||
val riddlLibNative = riddlLib_cp.native | ||
|
||
val Riddlc = config("riddlc") | ||
lazy val riddlc_cp: CrossProject = CrossModule("riddlc", "riddlc")(JVM, Native) | ||
.configure(With.GithubPublishing) | ||
|
@@ -365,13 +372,6 @@ lazy val riddlc_cp: CrossProject = CrossModule("riddlc", "riddlc")(JVM, Native) | |
description := "The `riddlc` compiler and tests, the only executable in RIDDL", | ||
maintainer := "[email protected]", | ||
mainClass := Option("com.ossuminc.riddl.RIDDLC") | ||
// graalVMNativeImageOptions ++= Seq( | ||
// "--verbose", | ||
// "--no-fallback", | ||
// "--native-image-info", | ||
// "--enable-url-protocols=https,http", | ||
// "-H:ResourceConfigurationFiles=../../src/native-image.resources" | ||
// ), | ||
) | ||
.jvmConfigure(With.coverage(50)) | ||
.jvmConfigure( | ||
|
@@ -472,3 +472,11 @@ addCommandAlias( | |
"test ; project testkitJS ; test ; project diagramsJS; test ; " + | ||
"project riddlLibJS ; test ; fastLinkJS ; project root" | ||
) | ||
addCommandAlias( | ||
"packageArtifacts", | ||
"; riddlc/Universal/packageBin " + | ||
"; riddlcNative/nativeLink " + | ||
"; riddlLibJS/fullLinkJS" + | ||
"; riddlLibNative/nativeLink" + | ||
"; riddlLib/Universal/packageBin" | ||
) |