Skip to content

Commit

Permalink
Skip ldd on Windows/Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyberg committed Jun 21, 2020
1 parent b482bf2 commit 48aa774
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,13 @@ jobs:
stack test ${{ matrix.stack-args }} --haddock --no-haddock-deps --ghc-options="-Werror" --copy-bins --local-bin-path bin
# Get output about whether the exe is dynamically linked
if [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
if [[ "${{ matrix.os }}" == "macos-latest" ]]
then
echo "Skipping ldd check on Mac"
elif [[ "${{ matrix.os }}" == "windows-latest" ]]
then
echo "Skipping ldd check on Windows"
elif [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
then
# ldd returns exit code 1 if it's static, so failure is success
(ldd ./bin/stack && exit 1) || true
Expand Down

0 comments on commit 48aa774

Please sign in to comment.