Skip to content

Commit 2dcd6f2

Browse files
committed
Use Swift 6
1 parent 09f8ece commit 2dcd6f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/xcframework-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15+
- name: Install Swift 6.0.3
16+
run: |
17+
# Install Swift 6.0.3 - https://download.swift.org/swift-6.0.3-release/xcode/swift-6.0.3-RELEASE/swift-6.0.3-RELEASE-osx.pkg
18+
SWIFT_VERSION=6.0.3
19+
SWIFT_URL="https://download.swift.org/swift-$SWIFT_VERSION-release/xcode/swift-$SWIFT_VERSION-RELEASE/swift-$SWIFT_VERSION-RELEASE-osx.pkg"
20+
curl -O $SWIFT_URL
21+
sudo installer -pkg swift-$SWIFT_VERSION-RELEASE-osx.pkg -target /
22+
echo "/Library/Developer/Toolchains/swift-$SWIFT_VERSION-RELEASE.xctoolchain/usr/bin" | sudo tee /etc/paths.d/swift
23+
- name: Verify Swift installation
24+
run: swift --version
1525
- name: Generate Xcode project
1626
run: swift package --disable-sandbox tuist generate -p Projects/ --no-open
1727
- name: Archive & Create XCFramework

0 commit comments

Comments
 (0)