Skip to content

Fix iOS / Android CMake builds #2

Fix iOS / Android CMake builds

Fix iOS / Android CMake builds #2

Workflow file for this run

name: cmake
permissions:
contents: read
on:
push:
branches:
- 'main'
pull_request:
jobs:
iOS:
name: iOS
runs-on: mac-13
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- run: python3 utils/git-sync-deps
# NOTE: The Vulkan SDK ships universal binaries.
- name: Configure Universal Binary for iOS
run: |
cmake -S . -B build \
-D CMAKE_BUILD_TYPE=Debug \
-D CMAKE_SYSTEM_NAME=iOS \
"-D CMAKE_OSX_ARCHITECTURES=arm64;x86_64" \
-G Ninja
- run: cmake --build build
- run: cmake --install build --prefix /etc
android:
name: android
runs-on: mac-13
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- run: python3 utils/git-sync-deps
- name: Configure for Android
run: |
cmake -S . -B build/ --toolchain $ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake \
-D CMAKE_BUILD_TYPE=Debug
-G Ninja
- run: cmake --build build
- run: cmake --install build --prefix /etc