File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
standalone-contract/scripts Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5555 TASKS+=" build "
5656fi
5757
58- $DOCKER run --platform=linux/amd64 --rm $DOCKER_RUN_ARGS -v ` pwd` :/code $DOCKER_IMAGE make $TASKS
58+ DOCKER_IMAGE_PLATFORM=linux/amd64
59+ if [[ " $( grep -E ' ^ID=' /etc/os-release 2> /dev/null | cut -d= -f2 | tr -d ' "' ) " == " ubuntu" ]] && [[ " $( uname -m) " == " aarch64" ]]; then
60+ echo " Ubuntu ARM64 detected. Using docker image with linux/arm64 platform. Note: This may produce different binaries than the default linux/amd64."
61+ DOCKER_IMAGE_PLATFORM=linux/arm64
62+ fi
63+
64+ $DOCKER run --platform=${DOCKER_IMAGE_PLATFORM} --rm $DOCKER_RUN_ARGS -v ` pwd` :/code $DOCKER_IMAGE make $TASKS
5965# Reset file ownerships for all files docker might touch
60- $DOCKER run --platform=linux/amd64 --rm $DOCKER_RUN_ARGS -e UID=` id -u` -e GID=` id -g` -v ` pwd` :/code $DOCKER_IMAGE bash -c ' chown -R -f $UID:$GID checksums.txt build target'
66+ $DOCKER run --platform=${DOCKER_IMAGE_PLATFORM} --rm $DOCKER_RUN_ARGS -e UID=` id -u` -e GID=` id -g` -v ` pwd` :/code $DOCKER_IMAGE bash -c ' chown -R -f $UID:$GID checksums.txt build target'
6167
6268if [[ " ${UPDATE} " = " yes" ]]; then
6369 echo " ${CHECKSUM_FILE_PATH} file is updated with latest binary hashes!"
You can’t perform that action at this time.
0 commit comments