File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -43,18 +43,14 @@ jobs:
43
43
stack)
44
44
stack $ARGS test --haddock --no-haddock-deps --ghc-options="$GHC_OPTIONS" --copy-bins --local-bin-path bin
45
45
46
- set +e
46
+ # Get output about whether the exe is dynamically linked
47
+ # Ignore the exit code though, we don't want to fail just because it is static
48
+ ldd ./bin/stack || true
47
49
48
- NEW_EXE=$(stack $ARGS exec which stack)
49
- echo $NEW_EXE
50
- $NEW_EXE --version
51
- ldd $NEW_EXE
52
-
53
- # Make sure Alpine actually builds a static exe that works on Ubuntu
50
+ # Make sure we can run the executable on this OS
51
+ # Important to make sure the Alpine exe is properly static
54
52
./bin/stack --version
55
- ldd ./bin/stack || true # ldd returns exit code 1 on statics, which we don't want to fail for
56
53
57
- set -e
58
54
;;
59
55
pedantic)
60
56
stack --system-ghc build --pedantic
You can’t perform that action at this time.
0 commit comments