Skip to content

Commit

Permalink
Rollback emulator version
Browse files Browse the repository at this point in the history
  • Loading branch information
bentrengrove committed Sep 8, 2022
1 parent f74dc21 commit de4df88
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
# Allow tests to continue on other devices if they fail on one device.
fail-fast: false
matrix:
api-level: [ 22, 26, 29, 31, 32 ]
api-level: [ 22, 26, 29, 31 ]
shard: [ 0, 1 ] # Need to update shard-count below if this changes

env:
Expand Down Expand Up @@ -128,12 +128,21 @@ jobs:
TARGET="google_apis"
fi
echo "::set-output name=TARGET::$TARGET"
- name: Determine emulator arch
id: determine-arch
env:
API_LEVEL: ${{ matrix.api-level }}
run: |
ARCH="x86"
if [ "$API_LEVEL" -ge "31" ]; then
ARCH="x86_64"
fi
echo "::set-output name=ARCH::$ARCH"
- name: Run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86_64
arch: ${{ steps.determine-arch.outputs.ARCH }}
target: ${{ steps.determine-target.outputs.TARGET }}
profile: Galaxy Nexus
script: ./scripts/run-tests.sh --log-file=logcat.txt --run-affected --affected-base-ref=$BASE_REF --shard-index=${{ matrix.shard }} --shard-count=2
Expand Down

0 comments on commit de4df88

Please sign in to comment.