mirror of https://github.com/ZDoom/fluidsynth.git
Update azure-pipelines-android.yml for Azure Pipelines
This commit is contained in:
parent
06619e99e0
commit
402f70cf02
|
@ -53,7 +53,7 @@ variables:
|
||||||
# This is a symlink pointing to the real Android NDK
|
# This is a symlink pointing to the real Android NDK
|
||||||
# Must be the same as $ANDROID_NDK_HOME see:
|
# Must be the same as $ANDROID_NDK_HOME see:
|
||||||
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
|
# https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md
|
||||||
NDK: '/Users/runner/Library/Android/sdk/ndk-bundle'
|
NDK: '/Users/runner/Library/Android/sdk/ndk/21.4.7075529'
|
||||||
|
|
||||||
# All the built binaries, libs and their headers will be installed here
|
# All the built binaries, libs and their headers will be installed here
|
||||||
PREFIX: '$(DEV)/opt/android'
|
PREFIX: '$(DEV)/opt/android'
|
||||||
|
@ -562,17 +562,18 @@ jobs:
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
set -ex
|
set -ex
|
||||||
ls $ANDROID_HOME
|
cd $ANDROID_HOME/tools/bin/
|
||||||
ls $ANDROID_HOME/emulator
|
./sdkmanager --list | grep system-images
|
||||||
$ANDROID_HOME/emulator/emulator -list-avds
|
./sdkmanager 'system-images;android-$(ANDROID_API);default;$(ANDROID_ABI_CMAKE)'
|
||||||
|
./sdkmanager --licenses
|
||||||
|
echo "no" | avdmanager create avd -n android_emulator -k 'system-images;android-$(ANDROID_API);default;$(ANDROID_ABI_CMAKE)' --force
|
||||||
|
|
||||||
$ANDROID_HOME/tools/bin/sdkmanager --list | grep system-images
|
|
||||||
echo "no" | $ANDROID_HOME/tools/bin/avdmanager create avd -n android_emulator -k 'system-images;android-$(ANDROID_API);default;$(ANDROID_ABI_CMAKE)' --force
|
|
||||||
echo "Emulator created successfully $($ANDROID_HOME/emulator/emulator -list-avds), launching it"
|
echo "Emulator created successfully $($ANDROID_HOME/emulator/emulator -list-avds), launching it"
|
||||||
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-window -no-snapshot -no-audio -no-boot-anim -accel auto -gpu auto &
|
nohup $ANDROID_HOME/emulator/emulator -avd android_emulator -no-window -no-snapshot -no-audio -no-boot-anim -accel auto -gpu auto &
|
||||||
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done'
|
$ANDROID_HOME/platform-tools/adb wait-for-device shell 'while [[ -z $(getprop sys.boot_completed | tr -d '\r') ]]; do sleep 1; done'
|
||||||
$ANDROID_HOME/platform-tools/adb devices echo "Emulator started"
|
$ANDROID_HOME/platform-tools/adb devices echo "Emulator started"
|
||||||
displayName: 'Create and start emulator'
|
displayName: 'Create and start emulator'
|
||||||
|
continueOnError: true
|
||||||
|
|
||||||
- bash: |
|
- bash: |
|
||||||
set -x
|
set -x
|
||||||
|
@ -612,7 +613,7 @@ jobs:
|
||||||
cd $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
|
cd $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
|
||||||
cp -LR $(PREFIX)/lib/* .
|
cp -LR $(PREFIX)/lib/* .
|
||||||
ls -Rg .
|
ls -Rg .
|
||||||
rm -rf *.dll *.alias gettext/ libtextstyle.* *.a *.la
|
rm -Rf *.dll *.alias gettext/ libtextstyle.* *.a *.la
|
||||||
rm -f *.so.*
|
rm -f *.so.*
|
||||||
mkdir -p $(Build.ArtifactStagingDirectory)/include
|
mkdir -p $(Build.ArtifactStagingDirectory)/include
|
||||||
cd $(Build.ArtifactStagingDirectory)/include
|
cd $(Build.ArtifactStagingDirectory)/include
|
||||||
|
|
Loading…
Reference in New Issue