forked from karlstav/cava
-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (49 loc) · 1.46 KB
/
android.yml
File metadata and controls
61 lines (49 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
name: Build CAVA Android
'on':
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout CAVA
uses: actions/checkout@v4
with:
path: cava
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ninja-build cmake unzip git
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Install Android NDK
run: sdkmanager "ndk;25.2.9519653"
- name: Export NDK path
run: |
echo "ANDROID_NDK_HOME=${ANDROID_SDK_ROOT}/ndk/25.2.9519653" \
>> "${GITHUB_ENV}"
echo "${ANDROID_SDK_ROOT}/ndk/25.2.9519653" >> "${GITHUB_PATH}"
- name: Clone fftw3-android
run: |
cd "${GITHUB_WORKSPACE}"
git clone https://github.com/Lauszus/fftw3-android
- name: Build fftw3-android
run: |
cd fftw3-android
chmod +x build.sh
./build.sh
- name: Build CAVA
run: |
cd cava/cavandroid
./gradlew assembleRelease \
-Pcmake.fftw3.dir="${GITHUB_WORKSPACE}/fftw3-android"
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: CAVA-APK
path: cava/cavandroid/app/build/outputs/apk/release/app-release.apk