mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-02-18 18:11:05 +00:00
Update Android CircleCI build to use latest orb, Android API, Oboe and Cerbero (#690)
This fixes the currently-broken CircleCI build for Android-useable .so files. Currently the Cerbero build is based off https://github.com/falrm/cerbero until https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/641 is merged and deployed to the GitHub cerbero mirror. Here is a successful build with the updated CircleCI workflow: https://app.circleci.com/pipelines/github/falrm/fluidsynth-android/31/workflows/0ad3186a-394c-4736-984b-96496b608053/jobs/32 Fixes #688
This commit is contained in:
parent
3efaaffba5
commit
21653bd08b
2 changed files with 22 additions and 16 deletions
|
@ -1,25 +1,20 @@
|
||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
android: circleci/android@0.2.0
|
android: circleci/android@0.2.1
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
working_directory: ~/code
|
working_directory: ~/code
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-29
|
- image: circleci/android:api-30
|
||||||
environment:
|
environment:
|
||||||
JVM_OPTS: -Xmx3200m
|
JVM_OPTS: -Xmx3200m
|
||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Setup Git email and user for Cerbero
|
name: Setup Git email and user for Cerbero
|
||||||
command: git config --global user.email "ci@beatscratch.io" && git config --global user.name "CI testing"
|
command: git config --global user.email "ci@beatscratch.io" && git config --global user.name "CI testing"
|
||||||
- android/install-ndk:
|
# - android/install-ndk:
|
||||||
ndk-version: android-ndk-r18b
|
# ndk-version: android-ndk-r18b
|
||||||
ndk-sha: 500679655da3a86aecf67007e8ab230ea9b4dd7b
|
# ndk-sha: 500679655da3a86aecf67007e8ab230ea9b4dd7b
|
||||||
- run:
|
|
||||||
name: Link NDK for Cerbero
|
|
||||||
command: |
|
|
||||||
mkdir -p /home/circleci/android-sdk-linux
|
|
||||||
ln -s /opt/android/android-ndk-r18b /home/circleci/android-sdk-linux/ndk-bundle
|
|
||||||
- run:
|
- run:
|
||||||
name: Install FluidSynth build dependencies
|
name: Install FluidSynth build dependencies
|
||||||
command: sudo apt-get update && sudo apt-get install autotools-dev automake autoconf libtool g++ autopoint make cmake
|
command: sudo apt-get update && sudo apt-get install autotools-dev automake autoconf libtool g++ autopoint make cmake
|
||||||
|
@ -32,14 +27,25 @@ jobs:
|
||||||
git subversion xutils-dev intltool ccache python3-setuptools autogen maven make
|
git subversion xutils-dev intltool ccache python3-setuptools autogen maven make
|
||||||
- checkout
|
- checkout
|
||||||
- run:
|
- run:
|
||||||
name: Prepare FluidSynth Android
|
name: Build Cerbero and Oboe
|
||||||
working_directory: doc/android
|
working_directory: doc/android
|
||||||
command: |
|
command: |
|
||||||
|
export TERM=dumb
|
||||||
make -f Makefile.android prepare
|
make -f Makefile.android prepare
|
||||||
|
- run:
|
||||||
|
name: Link Cerbero NDK for build
|
||||||
|
command: |
|
||||||
|
mkdir -p /home/circleci/android-sdk-linux
|
||||||
|
echo "android-ndk-21 content"
|
||||||
|
ls /home/circleci/code/doc/android/external/cerbero/build/android-ndk-21
|
||||||
|
ln -s /home/circleci/code/doc/android/external/cerbero/build/android-ndk-21 /home/circleci/android-sdk-linux/ndk-bundle
|
||||||
|
echo "/home/circleci/android-sdk-linux/ndk-bundle content"
|
||||||
|
ls /home/circleci/android-sdk-linux/ndk-bundle
|
||||||
- run:
|
- run:
|
||||||
name: Build FluidSynth Android
|
name: Build FluidSynth Android
|
||||||
working_directory: doc/android
|
working_directory: doc/android
|
||||||
command: |
|
command: |
|
||||||
|
export TERM=dumb
|
||||||
make -f Makefile.android
|
make -f Makefile.android
|
||||||
- run:
|
- run:
|
||||||
name: Show directory contents
|
name: Show directory contents
|
||||||
|
@ -47,7 +53,7 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
ls -R
|
ls -R
|
||||||
- run:
|
- run:
|
||||||
name: Zip FluidSnyth Android Distribution
|
name: Zip FluidSynth Android Distribution
|
||||||
working_directory: doc/android
|
working_directory: doc/android
|
||||||
command: zip -r android-dist.zip dist
|
command: zip -r android-dist.zip dist
|
||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
|
|
|
@ -17,7 +17,7 @@ CERBERO=$(PWD)/external/cerbero
|
||||||
OBOE=$(PWD)/external/oboe
|
OBOE=$(PWD)/external/oboe
|
||||||
CMAKE=cmake
|
CMAKE=cmake
|
||||||
|
|
||||||
ANDROID_NDK = $(PWD)/external/cerbero/build/android-ndk-18
|
ANDROID_NDK = $(PWD)/external/cerbero/build/android-ndk-21
|
||||||
|
|
||||||
ABIS_SIMPLE = x86 x86-64 armv7 arm64
|
ABIS_SIMPLE = x86 x86-64 armv7 arm64
|
||||||
|
|
||||||
|
@ -35,17 +35,17 @@ prepare: checkout-oboe checkout-cerbero
|
||||||
|
|
||||||
.PHONY: checkout-oboe
|
.PHONY: checkout-oboe
|
||||||
checkout-oboe: $(OBOE)
|
checkout-oboe: $(OBOE)
|
||||||
cd $(OBOE) && git checkout 9bf3943
|
cd $(OBOE) && git checkout 395f3d6ac25c2b069d53451b89dff4aa96d26eb8
|
||||||
|
|
||||||
$(OBOE):
|
$(OBOE):
|
||||||
git clone https://github.com/Google/oboe.git $(OBOE)
|
git clone https://github.com/Google/oboe.git $(OBOE)
|
||||||
|
|
||||||
.PHONY: checkout-cerbero
|
.PHONY: checkout-cerbero
|
||||||
checkout-cerbero: $(CERBERO)
|
checkout-cerbero: $(CERBERO)
|
||||||
cd $(CERBERO) && git checkout 0acd9b0
|
cd $(CERBERO) && git checkout e9f18b3b340de1648d885a0542d2f06c3fcfffe8
|
||||||
|
|
||||||
$(CERBERO):
|
$(CERBERO):
|
||||||
git clone https://github.com/atsushieno/cerbero.git $(CERBERO)
|
git clone https://github.com/falrm/cerbero.git $(CERBERO)
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: build-oboe dist-oboe build-deps-cerbero dist-deps-cerbero build-fluidsynth dist-fluidsynth build-fluidsynth-assetloader dist-fluidsynth-assetloader
|
build: build-oboe dist-oboe build-deps-cerbero dist-deps-cerbero build-fluidsynth dist-fluidsynth build-fluidsynth-assetloader dist-fluidsynth-assetloader
|
||||||
|
|
Loading…
Reference in a new issue