Update airframe-ulid to 24.12.2 #1819
Workflow file for this run
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
name: Scala Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
paths-ignore: | |
- 'doc/src/main/hugo/**' | |
- '.github/workflows/gh-pages.yml' | |
jobs: | |
scala-build: | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
RIDDLC_PATH: riddlc/native/target/scala-3.4.3/riddlc | |
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: Check Clang Okayness | |
run: | | |
echo CLANG: `which clang` | |
echo LD64.LLD: `which ld64.lld` | |
echo LLD: `which lld` | |
clang --version | |
- 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: Build And Test JVM Versions | |
run: | | |
sbt -v clean \ | |
utils/Test/compile \ | |
language/Test/compile \ | |
passes/Test/compile \ | |
diagrams/Test/compile \ | |
commands/Test/compile \ | |
riddlLib/Test/compile \ | |
riddlc/Test/compile \ | |
utils/test \ | |
language/test \ | |
passes/test \ | |
diagrams/test \ | |
commands/test \ | |
riddlLib/test \ | |
riddlc/test | |
- name: Build And Test Native Versions | |
run: | | |
sbt -v \ | |
utilsNative/Test/compile \ | |
languageNative/Test/compile \ | |
passesNative/Test/compile \ | |
diagramsNative/Test/compile \ | |
commandsNative/Test/compile \ | |
riddlLibNative/Test/compile \ | |
riddlcNative/Test/compile \ | |
utilsNative/test \ | |
languageNative/test \ | |
passesNative/test \ | |
diagramsNative/test \ | |
commandsNative/test \ | |
riddlLibNative/compile \ | |
riddlcNative/test | |
- name: Build And Test JS Versions | |
run: | | |
sbt -v \ | |
utilsJS/Test/compile \ | |
languageJS/Test/compile \ | |
passesJS/Test/compile \ | |
diagramsJS/Test/compile \ | |
riddlLibJS/Test/compile \ | |
utilsJS/test \ | |
languageJS/test \ | |
passesJS/test \ | |
diagramsJS/test \ | |
riddlLibJS/test | |
- name: Package Release Artifacts | |
run: | | |
sbt -v \ | |
riddlc/Universal/packageBin \ | |
riddlcNative/nativeLink \ | |
riddlLibJS/fullLinkJS | |
- name: Publish JVM RIDDL Libs & Test sbt-riddl plugin | |
env: | |
RIDDLC_PATH: riddlc/jvm/target/universal/stage/bin/riddlc | |
run: | | |
sbt -v \ | |
utils/publishLocal \ | |
language/publishLocal \ | |
passes/publishLocal \ | |
diagrams/publishLocal \ | |
commands/publishLocal \ | |
riddlLib/publishLocal \ | |
riddlc/stage \ | |
sbt-riddl/scripted | |
- name: Collect Release Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: collect-release-artifacts | |
path: | | |
- riddlc/native/target/scala-3.4.3/riddlc | |
- riddlc/jvm/target/universal/riddlc.zip | |
- riddlLib/js/target/scala-3.4.3/riddl-lib-opt/main.js | |
- name: Cleanup Before Caching | |
shell: bash | |
run: | | |
rm -rf "$HOME/.ivy2/local" || true | |
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true | |
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true | |
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true | |
find $HOME/.sbt -name "*.lock" -delete || true |