Skip to content

Commit

Permalink
Build AAudio plugin in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pgaskin committed Aug 7, 2024
1 parent 208fbaf commit 360425a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@ jobs:
with:
name: cmus (${{matrix.os}}, ${{matrix.cc}})
path: cmus.tar.xz
build_ndk:
name: Build (android, ndk, ${{matrix.arch}})
strategy:
matrix:
arch: [aarch64, armv7a, x86_64]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build op/aaudio.so
run: ${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -target ${{matrix.arch}}-linux-android26 -shared -o op/aaudio.so -fPIC -D__ANDROID_UNAVAILABLE_SYMBOLS_ARE_WEAK__ -Werror=unguarded-availability -Wall -std=gnu11 op/aaudio.c -laaudio
- name: Upload
uses: actions/upload-artifact@v4
with:
name: cmus (android, ndk, ${{matrix.arch}})
path: op/aaudio.so

0 comments on commit 360425a

Please sign in to comment.