Skip to content

Commit

Permalink
project(release): embed swift std libs to linux binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
kattouf committed Dec 29, 2024
1 parent 5665a46 commit 979c52a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SakeApp/ReleaseCommands.swift
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ struct ReleaseCommands {
let platform = target.arch == .arm ? "linux/arm64" : "linux/amd64"
let dockerExec =
"docker run --rm --volume \(context.projectRoot):/workdir --workdir /workdir --platform \(platform) swift:\(Constants.swiftVersion)"
let buildFlags = (buildFlags + ["--static-swift-stdlib"]).joined(separator: " ")
return (
"\(dockerExec) swift build \(buildFlags)",
"\(dockerExec) swift package clean",
Expand Down

0 comments on commit 979c52a

Please sign in to comment.