Skip to content

Commit 8fedcc5

Browse files
committed
Update host toolchain installation for macOS to copy libTestingMacros.dylib to lib/swift/host/plugins/ (works around swiftlang/swift-package-manager#8362)
1 parent 7fa6b64 commit 8fedcc5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

action.yml

+6
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ runs:
220220
/usr/sbin/installer -pkg swift.pkg -target CurrentUserHomeDirectory
221221
SWIFT_INSTALLATION=${HOME}/Library/Developer/Toolchains/${{ steps.setup.outputs.swift-id }}.xctoolchain/usr
222222
echo "TOOLCHAINS=$(plutil -extract CFBundleIdentifier raw ${SWIFT_INSTALLATION}/Info.plist)" >> $GITHUB_ENV
223+
224+
# workaround for https://github.com/swiftlang/swift-package-manager/issues/8362
225+
cd ${SWIFT_INSTALLATION}
226+
cp -f lib/swift/host/plugins/testing/libTestingMacros.dylib lib/swift/host/plugins/ || true
227+
cd -
223228
else
224229
echo "::error::Unsupported platform: ${RUNNER_OS}"
225230
exit 1
@@ -228,6 +233,7 @@ runs:
228233
# needed to override locally-installed `swift` command
229234
#echo "${SWIFT_INSTALLATION}/bin" >> $GITHUB_PATH
230235
236+
231237
- name: Install Swift Android SDK
232238
id: install
233239
shell: bash

0 commit comments

Comments
 (0)