Skip to content

Commit 41369b2

Browse files
committed
fix(ci): install Swift 6.2 via swiftly for container-bridge build
The macOS-15 runner ships Swift 6.1 but container-bridge/Package.swift requires swift-tools-version 6.2. Install Swift 6.2 using swiftly and persist it to GITHUB_PATH so subsequent steps pick up the correct toolchain.
1 parent 461131a commit 41369b2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/macos-e2e.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v4
2929

30+
- name: Install Swift 6.2
31+
run: |
32+
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg
33+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
34+
~/.swiftly/bin/swiftly init --quiet-shell-followup
35+
. "${SWIFTLY_HOME_DIR:-$HOME/.swiftly}/env.sh"
36+
swiftly install 6.2
37+
echo "${SWIFTLY_HOME_DIR:-$HOME/.swiftly}/bin" >> "$GITHUB_PATH"
38+
swift --version
39+
3040
- name: Install Rust toolchain
3141
uses: dtolnay/rust-toolchain@stable
3242

0 commit comments

Comments
 (0)