-
-
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.
This rather large merge consisted of 43 commits over several months. It provides the ability for all of RIDDL to be compiled to a native binary (riddlc) and library (riddl-lib) using Scala Native. Along the way several other things were accomplished: * Several improvements to sbt-ossuminc project, from 0.14.0 to 0.18.1 * Upgrade to sbt 1.10.6 * Provide ExceptionUtils for native * Provide a PThread workaround for native * Provide native definition for ExceptionUtils * Convert from pureconfig to sconfig for platform support * File issue #4053 with scala-native * Configure ScalaTest for JS and Native * Get the language module testing correctly on 3 platforms. * Get the passes module testing correctly on 3 platforms. * Get the testkit module testing correctly on 3 platforms. * Get the commands module compiling correctly on 2 platforms. * Get native riddlc to build * Add packaging targets to build * Eliminate duplicate JVM option settings in the workflow * Break workflow into more management sections, group by target * Don't dump output of dump command if -quiet option is given * Set up SBT & cache it in workflow * Use the Ubuntu image's version of clang * Consolidate JVM options to .jvmopts file * Upgrade to sbt-ossuminc 0.18.1 for needed features * Upgrade scalafmt.conf configuration * Install platform aware build info keys for ScalaJS and ScalaNative versions * Give the JVM more memory & reduce memory consumption - Replace all --suppress... options with --set options that take a true/false value - Move coverage support in scala.yml build to coverage.yml workflow - break scala-build workflow into sections for each target * Update get-riddlc action to 0.56.0
- Loading branch information
1 parent
0761d50
commit b0b4de5
Showing
284 changed files
with
1,947 additions
and
1,838 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Scala Coverage Testing | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
coverage: | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '21' | ||
distribution: temurin | ||
cache: sbt | ||
|
||
- name: Set Up SBT | ||
uses: sbt/setup-sbt@v1 | ||
|
||
- name: Setup Hugo | ||
uses: peaceiris/actions-hugo@v3 | ||
with: | ||
hugo-version: '0.112.0' | ||
extended: true | ||
|
||
- name: Coursier Caching | ||
uses: coursier/cache-action@v6 | ||
|
||
- name: Coverage For JVM projects only | ||
run: | | ||
sbt -v clean coverage \ | ||
utils/Test/compile language/Test/compile passes/Test/compile diagrams/Test/compile \ | ||
commands/Test/compile riddlc/Test/compile \ | ||
utils/test language/test passes/test diagrams/test commands/test riddlc/test \ | ||
coverageAggregate coveralls | ||
- name: Coverage Results Collection | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: code-coverage-report | ||
path: | | ||
- **/jvm/target/scala-3.4.3/scoverage-report/scoverage.xml | ||
- **/target/scala-3.4.3/scoverage-report/scoverage.xml | ||
- target/scala-3.4.3/scoverage-report/scoverage.xml |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
-Xms512M | ||
-Xmx4096M | ||
-Xss4M | ||
-XX:MaxMetaspaceSize=1024M | ||
-Xms5120M | ||
-Xmx8192M | ||
-Xss6M | ||
-Dfile.encoding=UTF-8 |
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
Oops, something went wrong.