Skip to content

Commit

Permalink
Merge pull request #608 from AppDevNext/MatrixJobs
Browse files Browse the repository at this point in the history
Matrix job for OS
  • Loading branch information
hannesa2 authored May 2, 2024
2 parents 67d9674 + b3fb8f9 commit eece319
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/Android-CI-Espresso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,25 @@ on:

jobs:
BuildTest:
name: Build and test JDK ${{ matrix.java_version }} ${{ matrix.api }} ${{ matrix.tag }} ${{ matrix.abi }}
runs-on: macOS-13
name: Test ${{ matrix.os }} ${{ matrix.abi }} ${{ matrix.api }} ${{ matrix.tag }} java ${{ matrix.java_version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
java_version: [ 17 ]
os: [ macOS-13 ]
api: [ 28 ]
abi: [ x86_64 ]
tag: [ 'default' ]
# include:
# # - api: 31
# # abi: x86_64
# # tag: 'google_apis'
# - api: 30
# abi: x86_64
# - java_version: 17
# os: macOS-14
# api: 31
# abi: arm64-v8a
# tag: 'google_apis'
# java_version: 17
steps:
- name: Show architecture
run: uname -a
- name: Checkout
uses: actions/checkout@v4
- name: Install JDK ${{ matrix.java_version }}
Expand All @@ -37,7 +38,7 @@ jobs:
java-version: ${{ matrix.java_version }}
- uses: gradle/wrapper-validation-action@v3
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
uses: hannesa2/action-android/[email protected].10
- name: Decrypt keystore
run: ./signing/decrypt.sh
env:
Expand All @@ -47,13 +48,13 @@ jobs:
- name: Run tests
run: ./gradlew test
- name: Run instrumentation tests
uses: malinskiy/action-android/emulator-run-cmd@release/0.1.4
uses: hannesa2/action-android/[email protected].10
with:
cmd: ./gradlew cAT --continue
api: ${{ matrix.api }}
tag: ${{ matrix.tag }}
abi: ${{ matrix.abi }}
cmdOptions: -noaudio -no-boot-anim -no-window
cmdOptions: -noaudio -no-boot-anim -no-window -metrics-collection
bootTimeout: 720 # seconds = 12 minutes
- name: Archive Espresso results
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Android-CI-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
distribution: 'adopt'
java-version: 17
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.4
uses: hannesa2/action-android/[email protected].10
- name: Build project
run: ./gradlew assembleRelease
env:
Expand Down

0 comments on commit eece319

Please sign in to comment.