diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 522f8c4ce4..b8000ef195 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -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