Test iOS compilation

This commit is contained in:
momo5502
2025-03-19 15:52:19 +01:00
parent 4d6ac1684f
commit db0d34288d
3 changed files with 10 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ jobs:
- Linux x86_64 Clang
- macOS arm64
- macOS x86_64
- iOS arm64
- Android x86_64
- Android arm64-v8a
configuration:
@@ -175,6 +176,9 @@ jobs:
- platform: Linux x86_64 Clang
runner: ubuntu-24.04
clang-version: 20
- platform: iOS arm64
runner: macos-latest
cmake-options: "-DCMAKE_TOOLCHAIN_FILE=$GITHUB_WORKSPACE/cmake/toolchain/ios.cmake"
- platform: macOS arm64
runner: macos-latest
- platform: macOS x86_64

View File

@@ -24,7 +24,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
endif()
# Prevent unicorn from generating universal binaries on macOS
# It doesn't support it, even if it thinks it does...

View File

@@ -0,0 +1,3 @@
set(CMAKE_SYSTEM_NAME "iOS")
set(CMAKE_OSX_ARCHITECTURES "arm64")
set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0)