mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Android NDK update, bgfx side (#2960)
* Android: Add local copy of native_app_glue, patched to compile as C++. * Android: List android-x86_64 configuration in makefile * Android: Build shared-lib and examples by default * Docs: Update Android build prerequisites * CI: Add Android builds * CI: **DO NOT MERGE** pick bx/PR with android support update
This commit is contained in:
43
.github/workflows/main.yml
vendored
43
.github/workflows/main.yml
vendored
@@ -206,3 +206,46 @@ jobs:
|
||||
".build/osx-x64/bin/geometryc${{ matrix.binsuffix}}" --version
|
||||
".build/osx-x64/bin/shaderc${{ matrix.binsuffix}}" --version
|
||||
".build/osx-x64/bin/texturec${{ matrix.binsuffix}}" --version
|
||||
android:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include: [
|
||||
{ platform: arm },
|
||||
{ platform: arm64 },
|
||||
{ platform: x86 },
|
||||
{ platform: x86_64 },
|
||||
]
|
||||
name: android-${{ matrix.platform }}
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: nttld/setup-ndk@v1
|
||||
id: setup-ndk
|
||||
with:
|
||||
ndk-version: r25b
|
||||
add-to-path: false
|
||||
- name: Checkout bgfx
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: bgfx
|
||||
- name: Checkout bx
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: thedmd/bx
|
||||
path: bx
|
||||
ref: android-ndk-update
|
||||
- name: Checkout bimg
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: bkaradzic/bimg
|
||||
path: bimg
|
||||
- name: Build
|
||||
run: |
|
||||
cd bgfx
|
||||
make -j$(sysctl -n hw.physicalcpu) android-${{ matrix.platform }}
|
||||
env:
|
||||
ANDROID_NDK_ROOT: ${{ steps.setup-ndk.outputs.ndk-path }}
|
||||
- name: Check
|
||||
run: |
|
||||
cd bgfx
|
||||
ls -lash ".build/android-${{ matrix.platform }}/bin"
|
||||
|
||||
Reference in New Issue
Block a user