Build for iOS

This commit is contained in:
Georg Hagen
2024-08-03 19:17:00 +02:00
parent de06623105
commit dfd0cd0d67

View File

@@ -43,3 +43,18 @@ jobs:
run: ctest -C ${{env.BUILD_TYPE}}
#TODO archive executables
build_iOS:
name: Build iOS
runs-on: mac_arm
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Configure CMake
run: mkdir build && cd build && cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain/ios.toolchain.cmake -DPLATFORM=OS64
- name: Build & Archive
run: xcodebuild -project ${{github.workspace}}/cmake-build/iOS/MadVoxel_Scan.xcodeproj -scheme MadVoxel_Scan -configuration Release -archivePath ${{github.workspace}}/cmake-build/iOS/app.xcarchive -sdk iphoneos archive