Skip to content

Commit 21ebb96

Browse files
QuafadasCopilot
andcommitted
.
Co-authored-by: Copilot <copilot@github.com>
1 parent 6e50735 commit 21ebb96

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ jobs:
187187
- name: Build binary (windows)
188188
run: .\mill.bat sjsls.native.nativeLink
189189
shell: cmd
190+
env:
191+
JAVA_OPTS: "-Xmx6g"
190192

191193
- name: Upload artifacts
192194
uses: actions/upload-artifact@v4

sjsls/package.mill

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ object `package` extends Module:
9797
mvn"com.github.lolgab::scala-native-crypto::0.3.0"
9898
)
9999
override def scalaNativeVersion = V.scalaNativeVersion
100-
def releaseMode = Task{ReleaseMode.ReleaseSize}
100+
def releaseMode = Task{
101+
if(isWindows) then ReleaseMode.ReleaseFast else ReleaseMode.ReleaseSize
102+
}
101103
def moduleDeps = Seq(sjsls_routes.native)
102104
def nativeLinkingOptions =
103105
if isWindows then Seq(
@@ -122,8 +124,8 @@ object `package` extends Module:
122124
)
123125
else ???
124126
override def nativeLTO: Simple[LTO] =
125-
if isWindows then LTO.Full
126-
else if isMac then LTO.Full
127+
if isWindows then LTO.Thin
128+
else if isMac then LTO.Full // TODO: Ask - LTO.thin is unstable on MacOS, it can lead to compilation errors. Consider using LTO.full (legacy, slower) or LTO.none (disabled)
127129
else if isLinux then LTO.Thin
128130
else ???
129131
end native

0 commit comments

Comments
 (0)