Add basic CI support for build-testing the Android-based VR build.

Note: Doesn't do APK generation, to keep things simple, instead using
the old NDK build.

Later should run gradle on github CI too, I guess.

Fixes #15981
This commit is contained in:
Henrik Rydgård 2022-11-25 10:48:24 +01:00
parent d97035fffc
commit d38019ee6a
2 changed files with 24 additions and 0 deletions

View file

@ -151,6 +151,18 @@ jobs:
cxx: clang++ cxx: clang++
args: cd android && ./ab.sh -j2 APP_ABI=x86_64 UNITTEST=1 HEADLESS=1 args: cd android && ./ab.sh -j2 APP_ABI=x86_64 UNITTEST=1 HEADLESS=1
id: android-x86_64 id: android-x86_64
- os: ubuntu-latest
extra: android
cc: clang
cxx: clang++
args: cd android && ./ab.sh -j2 APP_ABI=arm64-v8a OPENXR=1 OPENXR_PLATFORM_QUEST=1
id: android-vr-quest
- os: ubuntu-latest
extra: android
cc: clang
cxx: clang++
args: cd android && ./ab.sh -j2 APP_ABI=arm64-v8a OPENXR=1 OPENXR_PLATFORM_PICO=1
id: android-vr-pico
- os: ubuntu-latest - os: ubuntu-latest
extra: android extra: android
cc: clang cc: clang

View file

@ -739,6 +739,18 @@ ifeq ($(HEADLESS),1)
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
endif endif
ifeq ($(OPENXR),1)
LOCAL_CFLAGS += -DOPENXR
endif
ifeq ($(OPENXR_PLATFORM_QUEST),1)
LOCAL_CFLAGS += -DOPENXR_PLATFORM_QUEST
endif
ifeq ($(OPENXR_PLATFORM_PICO),1)
LOCAL_CFLAGS += -DOPENXR_PLATFORM_PICO
endif
ifeq ($(UNITTEST),1) ifeq ($(UNITTEST),1)
include $(CLEAR_VARS) include $(CLEAR_VARS)
include $(LOCAL_PATH)/Locals.mk include $(LOCAL_PATH)/Locals.mk