Add iOS CI support

This commit is contained in:
Kyle
2024-08-17 19:02:38 +08:00
parent 8957d36228
commit 06a9dc995a
3 changed files with 27 additions and 0 deletions

View File

@@ -73,6 +73,17 @@ jobs:
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
SKIP_SSH_TESTS: true
SKIP_NEGOTIATE_TESTS: true
- name: "iOS"
id: ios
os: macos-14
setup-script: ios
env:
CC: clang
CMAKE_OPTIONS: -DREGEX_BACKEND=regcomp_l -DDEPRECATE_HARD=ON -DUSE_LEAK_CHECKER=leaks -DUSE_GSSAPI=ON -DCMAKE_TOOLCHAIN_FILE=ios.toolchain.cmake -DCMAKE_SYSTEM_NAME=iOS -DPLATFORM=OS64
CMAKE_GENERATOR: Ninja
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
SKIP_SSH_TESTS: true
SKIP_NEGOTIATE_TESTS: true
- name: "Windows (amd64, Visual Studio, Schannel)"
id: windows-amd64-vs
os: windows-2019

6
ci/setup-ios-benchmark.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/sh
set -ex
brew update
brew install hyperfine

10
ci/setup-ios-build.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/sh
set -ex
brew update
brew install pkgconfig libssh2 ninja
ln -s /Applications/Xcode.app/Contents/Developer/usr/lib/libLeaksAtExit.dylib /usr/local/lib
curl -s -L https://raw.githubusercontent.com/leetal/ios-cmake/master/ios.toolchain.cmake -o ios.toolchain.cmake