Skip to content

Commit

Permalink
Optimizing macos binary size (#1940)
Browse files Browse the repository at this point in the history
  • Loading branch information
csjones authored and nicklockwood committed Dec 10, 2024
1 parent f9622e8 commit 9de5e33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
- name: Set Version Number
run: echo "Using version number $GITHUB_REF_NAME" && sed -i '' "s/let swiftFormatVersion = \"[^\"]*\"/let swiftFormatVersion = \"$GITHUB_REF_NAME\"/" Sources/SwiftFormat.swift
- name: Build macOS binary
run: swift build -c release --arch arm64 --arch x86_64
run: swift build -c release --arch arm64 --arch x86_64 -Xswiftc -Osize
- name: Strip macOS binary
run: strip -rSTx .build/apple/Products/Release/swiftformat
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 9de5e33

Please sign in to comment.