Skip to content

Fix a syntax error in an alias that breaks workflow #1871

Fix a syntax error in an alias that breaks workflow

Fix a syntax error in an alias that breaks workflow #1871

Workflow file for this run

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:
permissions:
contents: read
packages: read
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: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.112.0'
extended: true
- name: Coursier Caching
uses: coursier/cache-action@v6
- name: Install LLVM and Clang
run: |
sudo apt-get update && sudo apt-get install -y clang llvm
echo CLANG: `which clang`
echo LD64.LLD: `which ld64.lld`
echo LLD: `which lld`
clang --version
- name: Install curl dev dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libidn2-dev
- name: Build And Test JVM Versions
run: |
sbt -v clean cJVM tJVM
- name: Build And Test Native Versions
run: |
sbt -v cNative tNative
- name: Build And Test JS Versions
run: |
sbt -v cJS tJS
- 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: Package Release Artifacts
run: |
sbt -v packageArtifacts
- 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
riddlLib/jvm/target/universal/riddlLib.zip
riddlLib/native/target/scala-3.4.3/libriddl-lib.a
- 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