Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

ci(android): the emulator script is sh, so stop writing bash in it

esenginef393489c9bf9
diff --git a/.github/workflows/android-compat.yml b/.github/workflows/android-compat.yml
index 902746a0a..d865e452e 100644
--- a/.github/workflows/android-compat.yml
+++ b/.github/workflows/android-compat.yml
@@ -304,8 +304,11 @@ jobs:
arch: x86_64
profile: ${{ env.ANDROID_PROFILE }}
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none -camera-front none -memory 4096 -cores 2
+ # POSIX sh, not bash: this action runs `script` through /usr/bin/sh, so
+ # `set -o pipefail` aborts the whole thing on its first line — which it
+ # did, on all eight versions, before a single app was installed.
script: |
- set -euo pipefail
+ set -eu
mkdir -p build/compat
rc=0
for apk in apks/*.apk; do