Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions .github/workflows/android.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,18 +98,33 @@ jobs:
remove-codeql: true
remove-docker-images: true
remove-large-packages: true
- name: Prepare AVD home on /mnt
# GitHub-hosted runners mount a ~74GB volume at /mnt. Create it before AVD cache
# restore and android-emulator-runner (avdmanager needs the space at create time).
run: |
sudo mkdir -p /mnt/avd
sudo chown "$USER:$USER" /mnt/avd
df -h / /mnt
- name: AVD cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
continue-on-error: true
id: avd-cache
with:
# Must match the save path exactly
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*
key: avd-${{ runner.os }}-${{ env.AVD_API_LEVEL }}-${{ env.AVD_TARGET }}-${{ env.AVD_ARCH }}
- name: Link AVD home to /mnt
# android-emulator-runner exportVariables ANDROID_AVD_HOME to $HOME/.android/avd
run: |
mkdir -p "$HOME/.android"
rm -rf "$HOME/.android/avd"
ln -s /mnt/avd "$HOME/.android/avd"
- name: Start AVD then run E2E tests
uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a
env:
ANDROID_AVD_HOME: /mnt/avd
with:
api-level: ${{ env.AVD_API_LEVEL }}
target: ${{ env.AVD_TARGET }}
Expand Down Expand Up @@ -141,7 +156,7 @@ jobs:
key: ${{ steps.avd-cache.outputs.cache-primary-key }}
# Must match the restore path exactly
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*

agp9-compatibility:
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/e2e_tests_fdc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,30 @@ jobs:
remove-codeql: true
remove-docker-images: true
remove-large-packages: true
- name: Prepare AVD home on /mnt
run: |
sudo mkdir -p /mnt/avd
sudo chown "$USER:$USER" /mnt/avd
df -h / /mnt
- name: AVD cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
id: avd-cache
continue-on-error: true
with:
# Must match the save path exactly
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*
key: avd-${{ runner.os }}-${{ env.AVD_API_LEVEL }}-${{ env.AVD_TARGET }}-${{ env.AVD_ARCH }}
- name: Link AVD home to /mnt
run: |
mkdir -p "$HOME/.android"
rm -rf "$HOME/.android/avd"
ln -s /mnt/avd "$HOME/.android/avd"
- name: Start AVD then run E2E tests
uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a
env:
ANDROID_AVD_HOME: /mnt/avd
with:
api-level: ${{ env.AVD_API_LEVEL }}
target: ${{ env.AVD_TARGET }}
Expand All @@ -126,7 +138,7 @@ jobs:
key: ${{ steps.avd-cache.outputs.cache-primary-key }}
# Must match the restore path exactly
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*
- name: Save Firestore Emulator Cache
# Branches can read main cache but main cannot read branch cache. Avoid LRU eviction with main-only cache.
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/e2e_tests_pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,29 @@ jobs:
remove-codeql: true
remove-docker-images: true
remove-large-packages: true
- name: Prepare AVD home on /mnt
run: |
sudo mkdir -p /mnt/avd
sudo chown "$USER:$USER" /mnt/avd
df -h / /mnt
- name: AVD cache
uses: actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae
continue-on-error: true
id: avd-cache
with:
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*
key: avd-${{ runner.os }}-${{ env.AVD_API_LEVEL }}-${{ env.AVD_TARGET }}-${{ env.AVD_ARCH }}
- name: Link AVD home to /mnt
run: |
mkdir -p "$HOME/.android"
rm -rf "$HOME/.android/avd"
ln -s /mnt/avd "$HOME/.android/avd"
- name: Start AVD then run pipeline E2E tests
uses: reactivecircus/android-emulator-runner@e89f39f1abbbd05b1113a29cf4db69e7540cae5a
env:
ANDROID_AVD_HOME: /mnt/avd
with:
api-level: ${{ env.AVD_API_LEVEL }}
target: ${{ env.AVD_TARGET }}
Expand All @@ -108,7 +120,7 @@ jobs:
with:
key: ${{ steps.avd-cache.outputs.cache-primary-key }}
path: |
~/.android/avd/*
/mnt/avd/*
~/.android/adb*

pipeline-e2e-web:
Expand Down
Loading