Skip to content

Commit

Permalink
build: add sdk 30-34 to connectedChecks
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rl3x committed Sep 7, 2023
1 parent 8165110 commit 2add09b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:

strategy:
matrix:
api-level: [ 23, 24, 25, 26, 27, 28, 29 ]
api-level: [ 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 ]
steps:
- uses: actions/checkout@v2

Expand All @@ -180,11 +180,21 @@ jobs:
with:
name: build-files

- 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 "ARCH=$ARCH" >> $GITHUB_OUTPUT
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86
emulator-build: 7425822 # https://github.com/ReactiveCircus/android-emulator-runner/issues/160
arch: ${{ steps.determine-arch.outputs.ARCH }}
disable-animations: true
script: ./gradlew connectedCheck
16 changes: 13 additions & 3 deletions .github/workflows/buildRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:

strategy:
matrix:
api-level: [ 23, 24, 25, 26, 27, 28, 29 ]
api-level: [ 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 ]
steps:
- uses: actions/checkout@v2

Expand All @@ -174,12 +174,22 @@ jobs:
with:
name: build-files

- 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 "ARCH=$ARCH" >> $GITHUB_OUTPUT
- name: Run instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
arch: x86
emulator-build: 7425822 # https://github.com/ReactiveCircus/android-emulator-runner/issues/160
arch: ${{ steps.determine-arch.outputs.ARCH }}
disable-animations: true
script: ./gradlew connectedCheck

Expand Down

0 comments on commit 2add09b

Please sign in to comment.