Skip to content

Commit

Permalink
devops: add ability to skip architecture enforcement
Browse files Browse the repository at this point in the history
Github self-hosted runners currently run under rosetta:
actions/runner#805

This patch is an attempt to build arm webkit from-inside rosetta
shell on arm hardware.
  • Loading branch information
aslushnikov committed Dec 9, 2020
1 parent dd9c312 commit e3045fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion browser_patches/checkout_build_archive_upload.sh
Expand Up @@ -151,7 +151,9 @@ else
exit 1
fi

if [[ "$CURRENT_ARCH" != "$EXPECTED_ARCH" ]]; then
# Ability to skip arch checks since as of Dec 8, 2020 github self-hosted runner runs
# under rosetta on Apple Silicon: https://github.com/actions/runner/issues/805
if [[ (-n "${DO_NOT_ENFORCE_ARCH}") || ("$CURRENT_ARCH" != "$EXPECTED_ARCH") ]]; then
echo "ERROR: cannot build $BUILD_FLAVOR"
echo " -- expected arch: $EXPECTED_ARCH"
echo " -- current arch: $CURRENT_ARCH"
Expand Down

0 comments on commit e3045fe

Please sign in to comment.