Skip to content

Commit 8bf8cca

Browse files
committed
chore(ci): android filament build
1 parent 922795b commit 8bf8cca

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/build-android.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,23 @@ jobs:
3333
with:
3434
bun-version: latest
3535

36+
- name: Install build dependencies
37+
run: |
38+
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
39+
sudo apt-get update
40+
sudo apt-get install -y clang-16 libc++-16-dev libc++abi-16-dev ninja-build
41+
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-16 100
42+
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-16 100
43+
3644
- name: Setup Android SDK
3745
uses: android-actions/setup-android@v3
3846

39-
- name: Install Android NDK
47+
- name: Install Android NDK and CMake
4048
run: |
41-
sdkmanager --install "ndk;29.0.14206865"
49+
sdkmanager --install "ndk;29.0.14206865" "cmake;3.22.1"
4250
4351
- name: Build Filament
4452
working-directory: package/
45-
env:
46-
ANDROID_NDK_HOME: /usr/local/lib/android/sdk/ndk/29.0.14206865
47-
CMAKE_CXX_STANDARD: 17
4853
run: bun build-filament debug --platform android
4954

5055
- name: Upload Filament libraries

0 commit comments

Comments
 (0)