Skip to content

Commit

Permalink
Use env for api instead of matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Jul 22, 2023
1 parent 392ec1e commit ade0fe3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ concurrency:
jobs:
build:
runs-on: macOS-latest
strategy:
matrix:
api-level: [ 18 ]
env:
api-level: "18"
steps:
- name: Checkout
uses: actions/checkout@v1
Expand Down Expand Up @@ -52,13 +51,13 @@ jobs:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.api-level }}
key: avd-${{ env.api-level }}

- name: Create AVD and generate snapshot for caching
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
api-level: ${{ env.api-level }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
Expand All @@ -67,7 +66,7 @@ jobs:
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
api-level: ${{ env.api-level }}
force-avd-creation: false
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: true
Expand Down

0 comments on commit ade0fe3

Please sign in to comment.