Skip to content

Commit 3806e2d

Browse files
committed
Use Swift 6
1 parent 09f8ece commit 3806e2d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/xcframework-release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
- name: Install Swift 6.0.3
18+
run: |
19+
# 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
20+
SWIFT_VERSION=6.0.3
21+
SWIFT_URL="https://download.swift.org/swift-$SWIFT_VERSION-release/xcode/swift-$SWIFT_VERSION-RELEASE/swift-$SWIFT_VERSION-RELEASE-osx.pkg"
22+
curl -O $SWIFT_URL
23+
sudo installer -pkg swift-$SWIFT_VERSION-RELEASE-osx.pkg -target /
24+
25+
# Update the PATH for all subsequent steps
26+
echo "/Library/Developer/Toolchains/swift-$SWIFT_VERSION-RELEASE.xctoolchain/usr/bin" >> $GITHUB_PATH
27+
28+
- name: Verify Swift installation
29+
run: |
30+
echo "Swift version:"
31+
which swift
32+
swift --version
1533
- name: Generate Xcode project
1634
run: swift package --disable-sandbox tuist generate -p Projects/ --no-open
1735
- name: Archive & Create XCFramework

0 commit comments

Comments
 (0)