mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-11 08:36:16 +00:00
Test iOS compilation
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
@@ -24,7 +24,9 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 11.0)
|
||||
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...
|
||||
|
||||
3
cmake/toolchain/ios.cmake
Normal file
3
cmake/toolchain/ios.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
set(CMAKE_SYSTEM_NAME "iOS")
|
||||
set(CMAKE_OSX_ARCHITECTURES "arm64")
|
||||
set(CMAKE_OSX_DEPLOYMENT_TARGET 14.0)
|
||||
Reference in New Issue
Block a user