LOL Zig
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 1m43s

This commit is contained in:
Your Name
2025-05-25 23:04:39 +12:00
parent 3b51a511a6
commit 08794e6480
3 changed files with 62 additions and 107 deletions

View File

@ -12,37 +12,13 @@ DOCKERFILE="$SCRIPT_DIR/Dockerfile.multiarch"
mkdir -p "$OUTPUT_DIR"
# Ensure buildx is available
if ! docker buildx version &>/dev/null; then
echo "Docker Buildx is required. Please install Docker Buildx." >&2
exit 1
fi
options="-Doptimize=ReleaseSafe -Dtarget=x86_64-linux-musl"
docker build \
--platform "linux/amd64" \
--build-arg "OPTIONS=$options" \
-f Dockerfile.multiarch \
-t dropshell-build .
# Build for x86_64
DOCKER_BUILDKIT=1 docker buildx build --platform linux/amd64 \
-f "$DOCKERFILE" \
--output type=local,dest="$OUTPUT_DIR/amd64_tmp" \
--cache-from type=local,src=/tmp/dropshell-cache \
--cache-to type=local,dest=/tmp/dropshell-cache,mode=max \
"$SCRIPT_DIR"
mv "$OUTPUT_DIR/amd64_tmp/dropshell" "$OUTPUT_DIR/dropshell.amd64"
rm -rf "$OUTPUT_DIR/amd64_tmp"
echo "Built output/dropshell.amd64"
# Build for aarch64
DOCKER_BUILDKIT=1 docker buildx build --platform linux/arm64 \
-f "$DOCKERFILE" \
--output type=local,dest="$OUTPUT_DIR/arm64_tmp" \
--cache-from type=local,src=/tmp/dropshell-cache \
--cache-to type=local,dest=/tmp/dropshell-cache,mode=max \
"$SCRIPT_DIR"
mv "$OUTPUT_DIR/arm64_tmp/dropshell" "$OUTPUT_DIR/dropshell.arm64"
rm -rf "$OUTPUT_DIR/arm64_tmp"
echo "Built output/dropshell.arm64"
echo "Builds complete:"
ls -lh "$OUTPUT_DIR"/dropshell.*