We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5116003 commit 478abc9Copy full SHA for 478abc9
distribution/build-linux-arm64-musl.sh
@@ -55,6 +55,7 @@ build_binary_docker() {
55
cd $compilerRoot
56
57
cleanup() {
58
+ echo "trap cleanup: build failed with exit code $?"
59
# Work around ownership issues that prevent GH actions from managing the files later
60
[ "$actions" == "true" ] && chown -R "$userId:$groupId" ./* || true
61
}
@@ -83,6 +84,9 @@ build_binary_docker() {
83
84
cabal build --only-dependencies $CABALOPTS --ghc-options="$GHCOPTS"
85
86
# GOAL: build the Lamdera binary statically
87
+ cabal build $CABALOPTS --ghc-options="$GHCOPTS" || true
88
+
89
+ # GOAL: catch silly cache failures that work on a second build
90
cabal build $CABALOPTS --ghc-options="$GHCOPTS"
91
92
cp "$(cabal list-bin .)" "$bin"
0 commit comments