-
Notifications
You must be signed in to change notification settings - Fork 43
39 lines (31 loc) · 1.01 KB
/
cmake-ios-build.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
name: Ios build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_BUILD_TYPE=Release
-G Xcode -DCMAKE_TOOLCHAIN_FILE=ww/eventloop/cmake/ios.toolchain.cmake
-DPLATFORM=OS64 -DARCHS="arm64"
-DDEPLOYMENT_TARGET=12.0
-DOPENSSL_TARGET_PLATFORM=ios64-xcrun
-S ${{ github.workspace }}
- name: Build
# Build your program with the given configuration.
run: cmake --build ${{ steps.strings.outputs.build-output-dir }}