Skip to content

Commit df8b248

Browse files
committed
Optimize Swift release build in CI workflow
1 parent 4e1b07b commit df8b248

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828

2929
- name: Build Release Binary
3030
run: |
31-
swift build -c release --arch arm64
31+
swift build -c release --arch arm64 -Xswiftc -O -Xswiftc -whole-module-optimization -Xswiftc -cross-module-optimization
32+
strip .build/release/files
3233
3334
- name: Prepare Binary
3435
run: |

0 commit comments

Comments
 (0)