-
-
Notifications
You must be signed in to change notification settings - Fork 6
106 lines (91 loc) · 2.9 KB
/
scala.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
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