Skip to content

Commit

Permalink
Set status if cross build is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Jan 18, 2024
1 parent c0de4de commit 6ce0fdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ENV DEBIAN_FRONTEND noninteractive
RUN \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y curl openssl unzip git
apt-get install -y curl openssl unzip git tar

COPY deploy.sh /deploy.sh
COPY entrypoint.sh /entrypoint.sh
Expand Down
8 changes: 8 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ WASM_BINARY_STATUS="none"
fi
fi

# Override status for missing cross binaries
if [ "$PKGTYPE" == "src" ] && [ -d "../package-macos-release" ] && [ ! -d "../package-macos-release-arm64" ]; then
if tar -xOf ../package-macos-release/${PACKAGE}_*.tgz "${PACKAGE}/DESCRIPTION" | grep -q '^Built.*x86_64'; then
echo "Package is missing arm64 macos binary!"
MACOS_BINARY_STATUS="arm64-failure"
fi
fi

upload_package_file(){
curl --max-time 60 --retry 3 -L --upload-file "${FILE}" --fail-with-body -u "${CRANLIKEPWD}" \
-H "Builder-Upstream: ${REPO_URL}" \
Expand Down

0 comments on commit 6ce0fdc

Please sign in to comment.