Skip to content

Commit f290d4a

Browse files
committed
Updating strip command
1 parent ddb7462 commit f290d4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
- name: Set Version Number
1313
run: echo "Using version number $GITHUB_REF_NAME" && sed -i '' "s/let swiftFormatVersion = \"[^\"]*\"/let swiftFormatVersion = \"$GITHUB_REF_NAME\"/" Sources/SwiftFormat.swift
1414
- name: Build macOS binary
15-
run: swift build -c release --arch arm64 --arch x86_64
15+
run: swift build -c release --arch arm64 --arch x86_64 -Xswiftc -Osize
16+
- name: Strip macOS binary
17+
run: strip -rSTx .build/apple/Products/Release/swiftformat
1618
- name: Upload artifacts
1719
uses: actions/upload-artifact@v4
1820
with:

0 commit comments

Comments
 (0)