Skip to content

Commit 48aa774

Browse files
committed
Skip ldd on Windows/Mac
1 parent b482bf2 commit 48aa774

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,13 @@ jobs:
8080
stack test ${{ matrix.stack-args }} --haddock --no-haddock-deps --ghc-options="-Werror" --copy-bins --local-bin-path bin
8181
8282
# Get output about whether the exe is dynamically linked
83-
if [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
83+
if [[ "${{ matrix.os }}" == "macos-latest" ]]
84+
then
85+
echo "Skipping ldd check on Mac"
86+
elif [[ "${{ matrix.os }}" == "windows-latest" ]]
87+
then
88+
echo "Skipping ldd check on Windows"
89+
elif [[ "${{ matrix.extra-suffix }}" == "alpine" ]]
8490
then
8591
# ldd returns exit code 1 if it's static, so failure is success
8692
(ldd ./bin/stack && exit 1) || true

0 commit comments

Comments
 (0)