-
Notifications
You must be signed in to change notification settings - Fork 172
44 lines (35 loc) · 1.35 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
on: [push]
jobs:
build:
strategy:
matrix:
include:
- name: iOS arm64
cmakearch: arm64
cmakesysroot: iphoneos
- name: iOS x86_64
cmakearch: x86_64
cmakesysroot: iphonesimulator
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Toolchain Dependencies
working-directory: ${{runner.workspace}}/TeamTalk5/Build
run: |
brew update
make depend-mac
- name: Install TeamTalk Library Dependencies
run: brew install doxygen
- name: Build TeamTalk Library
working-directory: ${{runner.workspace}}/TeamTalk5/Build
run: |
make CMAKE_EXTRA="-DFEATURE_WEBRTC=OFF -DTOOLCHAIN_FFMPEG=OFF -DCMAKE_OSX_ARCHITECTURES=${{ matrix.cmakearch }} -DCMAKE_OSX_SYSROOT=${{ matrix.cmakesysroot }} -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/install-${{ matrix.cmakearch }}" BUILDDIR=build-${{ matrix.cmakearch }} ios-build
- name: Run CMake Install Target
working-directory: ${{runner.workspace}}/TeamTalk5/Build/build-${{ matrix.cmakearch }}
run: cmake --build . --target install
- name: Upload TeamTalk Artifact
uses: actions/upload-artifact@v4
with:
name: teamtalksdk-ios-${{ matrix.cmakearch }}
path: ${{runner.workspace}}/install-${{ matrix.cmakearch }}