Skip to content

Commit d93ba8c

Browse files
committed
Smoke test: hide the build's rtcheck directory so the bundled dylib must be found
1 parent 4128f7f commit d93ba8c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/build.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ jobs:
172172
- name: Smoke test the zip
173173
shell: bash
174174
run: |
175+
# The macOS binary also has the build tree's rtcheck directory as an rpath,
176+
# which exists on this runner but not on a user's machine, so hide it to
177+
# make sure the dylib bundled in the app is the one that's found.
178+
rtcheck_build="$PWD/${{ env.BUILD_DIR }}/_deps/rtcheck-build"
179+
if [ -d "$rtcheck_build" ]; then mv "$rtcheck_build" "$rtcheck_build.hidden"; fi
180+
175181
mkdir -p "$RUNNER_TEMP/smoke"
176182
7z x -y -o"$RUNNER_TEMP/smoke" "${{ env.APP_DIR }}/${{ env.ZIP_FILE_NAME }}" > /dev/null
177183
cd "$RUNNER_TEMP/smoke"

0 commit comments

Comments
 (0)