Skip to content

Commit 478abc9

Browse files
committed
Try improve odd failure for linux-arm64 builds
1 parent 5116003 commit 478abc9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

distribution/build-linux-arm64-musl.sh

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ build_binary_docker() {
5555
cd $compilerRoot
5656

5757
cleanup() {
58+
echo "trap cleanup: build failed with exit code $?"
5859
# Work around ownership issues that prevent GH actions from managing the files later
5960
[ "$actions" == "true" ] && chown -R "$userId:$groupId" ./* || true
6061
}
@@ -83,6 +84,9 @@ build_binary_docker() {
8384
cabal build --only-dependencies $CABALOPTS --ghc-options="$GHCOPTS"
8485

8586
# 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
8690
cabal build $CABALOPTS --ghc-options="$GHCOPTS"
8791

8892
cp "$(cabal list-bin .)" "$bin"

0 commit comments

Comments
 (0)