-
Notifications
You must be signed in to change notification settings - Fork 82
44 lines (36 loc) · 1.1 KB
/
ios.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "ios"
# Builds _example_integration for iOS simulator
on:
workflow_dispatch:
pull_request:
push:
jobs:
build:
name: "ios"
runs-on: macos-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
# - name: Setup interactive tmate session
# uses: mxschmitt/action-tmate@v3
- name: CMake
run: |
cd _example_integration
mkdir -p external
cd external
ln -s ../.. imgui_bundle
cd ..
mkdir build-ios
cd build-ios
cmake .. \
-GXcode \
-DCMAKE_TOOLCHAIN_FILE=../external/imgui_bundle/external/hello_imgui/hello_imgui/hello_imgui_cmake/ios-cmake/ios.toolchain.cmake \
-DHELLOIMGUI_FREETYPE_STATIC=ON \
-DPLATFORM=SIMULATOR64
- name: Build for simulator
working-directory: _example_integration/build-ios
run: |
xcodebuild -configuration Release -project imgui_bundle_example_integration.xcodeproj -target ALL_BUILD -arch x86_64 -sdk iphonesimulator