Skip to content

Commit a72c2d1

Browse files
committed
Only run with --testing-library swift-testing if the command links to the Testing library
1 parent 389800e commit a72c2d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,12 @@ runs:
103103
. /etc/os-release
104104
echo "osidpair=${ID}${VERSION_ID}" >> $GITHUB_OUTPUT
105105
echo "osid=${ID}$(echo ${VERSION_ID} | tr -d '.')" >> $GITHUB_OUTPUT
106+
# patchelf is needed to check whether an ELF binary contains the Testing library
107+
which patchelf || apt install patchelf
106108
elif [ ${RUNNER_OS} == 'macOS' ]; then
107109
echo "osidpair=macos" >> $GITHUB_OUTPUT
108110
echo "osid=macos" >> $GITHUB_OUTPUT
111+
which patchelf || brew install patchelf
109112
else
110113
echo "::error::Unsupported platform: ${RUNNER_OS}"
111114
exit 1

0 commit comments

Comments
 (0)