mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 09:20:39 +01:00
Run emulator in Linux for the final phase of Android build hopping for better stability.
This was not possible in the past.
This commit is contained in:
parent
6d95df59f0
commit
fe116d5570
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -390,7 +390,7 @@ jobs:
|
|||||||
build-android-final:
|
build-android-final:
|
||||||
name: build-android-${{ matrix.arch }}-final
|
name: build-android-${{ matrix.arch }}-final
|
||||||
needs: build-android-initial
|
needs: build-android-initial
|
||||||
runs-on: macos-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ARCH: ${{ matrix.arch }}
|
ARCH: ${{ matrix.arch }}
|
||||||
|
|
||||||
@ -409,6 +409,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 10
|
fetch-depth: 10
|
||||||
|
|
||||||
|
- 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: Download initial build
|
- name: Download initial build
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
@ -422,7 +428,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
~/.android/avd/*
|
~/.android/avd/*
|
||||||
~/.android/adb*
|
~/.android/adb*
|
||||||
key: avd-v3
|
key: avd-v7
|
||||||
|
|
||||||
- name: Create AVD and generate snapshot for caching
|
- name: Create AVD and generate snapshot for caching
|
||||||
if: steps.avd-cache.outputs.cache-hit != 'true'
|
if: steps.avd-cache.outputs.cache-hit != 'true'
|
||||||
@ -449,10 +455,9 @@ jobs:
|
|||||||
emulator-options: -no-snapshot-save -no-window -noaudio -no-boot-anim -camera-back none -port 5554
|
emulator-options: -no-snapshot-save -no-window -noaudio -no-boot-anim -camera-back none -port 5554
|
||||||
emulator-boot-timeout: 900
|
emulator-boot-timeout: 900
|
||||||
script: |
|
script: |
|
||||||
sleep 20
|
|
||||||
adb wait-for-device
|
adb wait-for-device
|
||||||
adb root
|
adb root
|
||||||
NDK=/Users/runner/Library/Android/sdk/ndk/25.1.8937393 builds/install/arch-specific/android/BuildFinalPackage.sh $ARCH
|
NDK=/usr/local/lib/android/sdk/ndk/25.1.8937393 builds/install/arch-specific/android/BuildFinalPackage.sh $ARCH
|
||||||
|
|
||||||
- name: Upload installer
|
- name: Upload installer
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
Loading…
Reference in New Issue
Block a user