Skip to content

Commit 6d3278f

Browse files
authored
devops: add ability to skip architecture enforcement (#4644)
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.
1 parent dd9c312 commit 6d3278f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

browser_patches/checkout_build_archive_upload.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ else
151151
exit 1
152152
fi
153153

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

0 commit comments

Comments
 (0)