1
+ # ##################################################################################################
2
+ # ## THIS IS A REUSABLE WORKFLOW TO BUILD THE SCALA LAUNCHERS ###
3
+ # ## HOW TO USE: ###
4
+ # ## - THSI WORKFLOW WILL PACKAGE THE ALL THE LAUNCHERS AND UPLOAD THEM TO GITHUB ARTIFACTS ###
5
+ # ## ###
6
+ # ## NOTE: ###
7
+ # ## - SEE THE WORFLOW FOR THE NAMES OF THE ARTIFACTS ###
8
+ # ##################################################################################################
9
+
10
+
11
+ name : Build Scala Launchers
12
+ run-name : Build Scala Launchers
13
+
14
+ on :
15
+ workflow_call :
16
+
17
+ jobs :
18
+ build :
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - uses : actions/checkout@v4
22
+ - name : Build and pack the SDK (universal)
23
+ run : ./project/scripts/sbt dist/Universal/packageBin
24
+ - name : Build and pack the SDK (linux x86-64)
25
+ run : ./project/scripts/sbt dist-linux-x86_64/Universal/packageBin
26
+ - name : Build and pack the SDK (linux aarch64)
27
+ run : ./project/scripts/sbt dist-linux-aarch64/Universal/packageBin
28
+ - name : Build and pack the SDK (mac x86-64)
29
+ run : ./project/scripts/sbt dist-mac-x86_64/Universal/packageBin
30
+ - name : Build and pack the SDK (mac aarch64)
31
+ run : ./project/scripts/sbt dist-mac-aarch64/Universal/packageBin
32
+ - name : Build and pack the SDK (win x86-64)
33
+ run : ./project/scripts/sbt dist-win-x86_64/Universal/packageBin
34
+ - name : Upload zip archive to GitHub Artifact (universal)
35
+ uses : actions/upload-artifact@v4
36
+ with :
37
+ path : ./dist/target/universal/scala3-*.zip
38
+ name : scala3.zip
39
+ - name : Upload zip archive to GitHub Artifact (linux x86-64)
40
+ uses : actions/upload-artifact@v4
41
+ with :
42
+ path : ./dist/linux-x86_64/target/universal/scala3-*-x86_64-pc-linux.zip
43
+ name : scala3-x86_64-pc-linux.zip
44
+ - name : Upload zip archive to GitHub Artifact (linux aarch64)
45
+ uses : actions/upload-artifact@v4
46
+ with :
47
+ path : ./dist/linux-aarch64/target/universal/scala3-*-aarch64-pc-linux.zip
48
+ name : scala3-aarch64-pc-linux.zip
49
+ - name : Upload zip archive to GitHub Artifact (mac x86-64)
50
+ uses : actions/upload-artifact@v4
51
+ with :
52
+ path : ./dist/mac-x86_64/target/universal/scala3-*-x86_64-apple-darwin.zip
53
+ name : scala3-x86_64-apple-darwin.zip
54
+ - name : Upload zip archive to GitHub Artifact (mac aarch64)
55
+ uses : actions/upload-artifact@v4
56
+ with :
57
+ path : ./dist/mac-aarch64/target/universal/scala3-*-aarch64-apple-darwin.zip
58
+ name : scala3-aarch64-apple-darwin.zip
59
+ - name : Upload zip archive to GitHub Artifact (win x86-64)
60
+ uses : actions/upload-artifact@v4
61
+ with :
62
+ path : ./dist/win-x86_64/target/universal/scala3-*-x86_64-pc-win32.zip
63
+ name : scala3-x86_64-pc-win32.zip
64
+
0 commit comments