Skip to content

Commit

Permalink
Add bundle release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy-Geenexus committed May 20, 2024
1 parent 51f182d commit 18e18e7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 6 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Bundle
on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup JDK 17
id: setup-java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17

- name: Bundle release
run: ./gradlew bundleReleaseAar
47 changes: 41 additions & 6 deletions .github/workflows/tests_instrumented.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,58 @@ on:
push:
branches:
- main

jobs:
instrumentation-tests:
runs-on: macos-latest
timeout-minutes: 30
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
api-level: [29]
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup JDK 17
id: setup-java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
distribution: zulu
java-version: 17

- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Gradle cache
uses: gradle/actions/setup-gradle@v3

- name: AVD cache
uses: actions/cache@v4
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ matrix.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 }}
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."

- name: Instrumentation tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: ./gradlew connectedDebugAndroidTest
api-level: ${{ matrix.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
script: ./gradlew connectedAndroidTest

0 comments on commit 18e18e7

Please sign in to comment.