Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use macos 13 #2510

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from
54 changes: 27 additions & 27 deletions .github/workflows/e2e-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: workflow_dispatch
jobs:
detox-android:
timeout-minutes: 25
runs-on: [macos-latest-xlarge]
runs-on: [macos-13]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,23 +25,23 @@ jobs:
git lfs pull

# see: https://stackoverflow.com/questions/67264212/android-emulator-crash-when-start-hvf-error-hv-error
- name: Create qemu entitlements
run: |
{
echo '<?xml version="1.0" encoding="UTF-8"?>'
echo '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'
echo '<plist version="1.0">'
echo '<dict>'
echo ' <key>com.apple.security.hypervisor</key>'
echo ' <true/>'
echo '</dict>'
echo '</plist>'
} >> $ANDROID_HOME/emulator/qemu/darwin-aarch64/entitlements.xml

- name: Re-sign qemu binary
run: |
cd $ANDROID_HOME/emulator/qemu/darwin-aarch64
codesign -s - --entitlements entitlements.xml --force qemu-system-aarch64 --verbose
# - name: Create qemu entitlements
# run: |
# {
# echo '<?xml version="1.0" encoding="UTF-8"?>'
# echo '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">'
# echo '<plist version="1.0">'
# echo '<dict>'
# echo ' <key>com.apple.security.hypervisor</key>'
# echo ' <true/>'
# echo '</dict>'
# echo '</plist>'
# } >> $ANDROID_HOME/emulator/qemu/darwin-aarch64/entitlements.xml

# - name: Re-sign qemu binary
# run: |
# cd $ANDROID_HOME/emulator/qemu/darwin-aarch64
# codesign -s - --entitlements entitlements.xml --force qemu-system-aarch64 --verbose

- name: Install SDK image
run: yes | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager --install 'system-images;android-34;google_apis;arm64-v8a'
Expand Down Expand Up @@ -76,13 +76,13 @@ jobs:
- name: Stop metro
run: pm2 stop METRO

- name: Take screenshot
if: always()
run: | # TODO
# - name: Take screenshot
# if: always()
# run: | # TODO

- name: Upload screenshot
if: always()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
with:
name: screenshot.png
path: screenshot.png
# - name: Upload screenshot
# if: always()
# uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
# with:
# name: screenshot.png
# path: screenshot.png
Loading