Use 512KiB of thread stack size for static Linux binaries (#6291)

This commit is contained in:
Satoshi Namai
2025-10-12 07:26:20 +00:00
committed by GitHub
parent a158a4275a
commit f67943d4f8
2 changed files with 12 additions and 1 deletions
+7 -1
View File
@@ -145,7 +145,13 @@ jobs:
- name: Install SDK
run: swift sdk install https://download.swift.org/swift-6.1.2-release/static-sdk/swift-6.1.2-RELEASE/swift-6.1.2-RELEASE_static-linux-0.0.1.artifactbundle.tar.gz --checksum df0b40b9b582598e7e3d70c82ab503fd6fbfdff71fd17e7f1ab37115a0665b3b
- name: Build static binary
run: swift build -c release --product swiftlint --swift-sdk ${{ matrix.swift_sdk }} -Xswiftc -DSWIFTLINT_DISABLE_SOURCEKIT
run: |
swift build \
-c release \
--product swiftlint \
--swift-sdk ${{ matrix.swift_sdk }} \
-Xswiftc -DSWIFTLINT_DISABLE_SOURCEKIT \
-Xlinker -z -Xlinker stack-size=0x80000 # 512KiB
- name: Strip binary
run: strip -s "$BINARY_PATH"
- name: Upload artifact