mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-08 14:52:13 -04:00
Removed the caching of emulator from CI.
This commit is contained in:
parent
bcb4a46315
commit
f40b3679c3
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
@ -37,39 +37,6 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-gradle-
|
${{ runner.os }}-gradle-
|
||||||
|
|
||||||
- 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: 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 }}
|
|
||||||
target: default
|
|
||||||
arch: x86_64
|
|
||||||
profile: pixel_2
|
|
||||||
ram-size: 4096M
|
|
||||||
force-avd-creation: false
|
|
||||||
sdcard-path-or-size: 2048M
|
|
||||||
cores: 4
|
|
||||||
disable-animations: false
|
|
||||||
heap-size: 512M
|
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
emulator-boot-timeout: 1200
|
|
||||||
script: echo "Generated AVD snapshot for caching."
|
|
||||||
|
|
||||||
- name: create instrumentation coverage
|
- name: create instrumentation coverage
|
||||||
uses: reactivecircus/android-emulator-runner@v2
|
uses: reactivecircus/android-emulator-runner@v2
|
||||||
env:
|
env:
|
||||||
@ -79,10 +46,8 @@ jobs:
|
|||||||
target: default
|
target: default
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
profile: pixel_2
|
profile: pixel_2
|
||||||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
ram-size: 4096M
|
ram-size: 4096M
|
||||||
cores: 4
|
cores: 4
|
||||||
force-avd-creation: false
|
|
||||||
sdcard-path-or-size: 2048M
|
sdcard-path-or-size: 2048M
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
heap-size: 512M
|
heap-size: 512M
|
||||||
@ -98,10 +63,8 @@ jobs:
|
|||||||
target: default
|
target: default
|
||||||
arch: x86_64
|
arch: x86_64
|
||||||
profile: pixel_2
|
profile: pixel_2
|
||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
||||||
ram-size: 4096M
|
ram-size: 4096M
|
||||||
cores: 4
|
cores: 4
|
||||||
force-avd-creation: false
|
|
||||||
sdcard-path-or-size: 2048M
|
sdcard-path-or-size: 2048M
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
emulator-boot-timeout: 1200
|
emulator-boot-timeout: 1200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user