Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/swift-package-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ jobs:
"https://download.swift.org/swift-$SWIFT_VERSION-release/xcode/swift-$SWIFT_VERSION-RELEASE/swift-$SWIFT_VERSION-RELEASE-osx.pkg"
pkgutil --check-signature "$package"
sudo installer -pkg "$package" -target /
toolchain="/Library/Developer/Toolchains/swift-$SWIFT_VERSION-RELEASE.xctoolchain/usr/bin"
"$toolchain/swift" --version
echo "$toolchain" >> "$GITHUB_PATH"
toolchain="/Library/Developer/Toolchains/swift-$SWIFT_VERSION-RELEASE.xctoolchain"
"$toolchain/usr/bin/swift" --version
echo "$toolchain/usr/bin" >> "$GITHUB_PATH"
identifier=$(plutil -extract CFBundleIdentifier raw "$toolchain/Info.plist")
echo "TOOLCHAINS=$identifier" >> "$GITHUB_ENV"
- name: Validate the package
env:
CHECK_COMMAND: ${{ matrix.command || needs.configure.outputs.command }}
Expand Down
3 changes: 2 additions & 1 deletion Documentation/Reference/WorkflowIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ changelog path, check command, CI matrix and supported platform generations.
The check command runs in the caller's checkout. Each matrix entry defines a
unique name, hosted runner and optional installed Xcode version, macOS Swift toolchain version and check command.
The `swift` field installs an official release toolchain after selecting Xcode;
that Xcode still owns the Darwin SDK. Validate compiler and SDK compatibility together.
its bundle identifier selects the same compiler for `swift`, `xcrun` and
`xcodebuild`. That Xcode still owns the Darwin SDK. Validate compiler and SDK compatibility together.
Use a format-only entry with a consistent formatter toolchain, and compiler-check
entries for each supported compiler. All entries must pass for acceptance.

Expand Down