Fix iOS / Android CMake builds #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cmake | |
permissions: | |
contents: read | |
on: [push, pull_request, workflow_dispatch] | |
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 |