Skip to content

Commit

Permalink
Add build-android build-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
ithewei committed Aug 4, 2023
1 parent 5171802 commit d1d99df
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,36 @@ jobs:
bin/Release/curl -v http://127.0.0.1:8080/ping
bin/Release/wrk -c 100 -t 2 -d 10s http://127.0.0.1:8080/ping
build-apple:
name: build-apple
build-mac:
name: build-mac
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

- name: build-mac
- name: build
run: |
./configure
make libhv evpp examples unittest
- name: build-ios
build-android:
name: build-android
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
mkdir cmake-build-arm64
cd cmake-build-arm64
cmake .. -DCMAKE_TOOLCHAIN_FILE="${ADNROID_NDK_ROOT}/build/cmake/android.toolchain.cmake" -DANDROID_ABI="arm64-v8a" -DANDROID_PLATFORM=android-21
cmake --build . --target hv --config Release
build-ios:
name: build-ios
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
mkdir cmake-build-ios
cd cmake-build-ios
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS -DDEPLOYMENT_TARGET=9.0 -DARCHS="arm64"
cmake .. -G Xcode -DCMAKE_TOOLCHAIN_FILE=../cmake/ios.toolchain.cmake -DPLATFORM=OS64 -DARCHS="arm64" -DDEPLOYMENT_TARGET=9.0
cmake --build . --target hv_static --config Release

0 comments on commit d1d99df

Please sign in to comment.