Skip to content

Commit

Permalink
Move aarch64 Rust builds to --jobs=1.
Browse files Browse the repository at this point in the history
  • Loading branch information
skyzyx committed Apr 8, 2024
1 parent dc4fa2a commit 3170aad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/lychee/compile-alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@ tar zxvf "v${PKG_VER}.tar.gz"
cd "lychee-${PKG_VER}/" || true
cargo fetch --target="${EARCH}-unknown-linux-musl" --locked
# cargo test --frozen
cargo auditable build --frozen --release

case "${ARCH}" in
"arm64") cargo auditable build --jobs 1 --frozen --release ;; # Slower, but scales better.
"amd64") cargo auditable build --frozen --release ;;
*) echo "Unknown architecture: ${ARCH}" && exit 1 ;;
esac

# The final binary must always end up at `${WORKSPACE_DIR}/builds/usr/bin/{package}_musl_{arch}` so that
# it gets picked up by the build process correctly.
Expand Down

0 comments on commit 3170aad

Please sign in to comment.