|
@@ -15,24 +15,18 @@ jobs:
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|
|
|
steps:
|
|
steps:
|
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
|
|
|
+
|
|
|
- name: build
|
|
- name: build
|
|
|
run: |
|
|
run: |
|
|
|
sudo apt update
|
|
sudo apt update
|
|
|
sudo apt install libssl-dev libnghttp2-dev
|
|
sudo apt install libssl-dev libnghttp2-dev
|
|
|
./configure --with-openssl --with-nghttp2
|
|
./configure --with-openssl --with-nghttp2
|
|
|
make libhv evpp
|
|
make libhv evpp
|
|
|
- make check
|
|
|
|
|
- make run-unittest
|
|
|
|
|
|
|
|
|
|
- build-macos:
|
|
|
|
|
- name: build-macos
|
|
|
|
|
- runs-on: macos-latest
|
|
|
|
|
- steps:
|
|
|
|
|
- - uses: actions/checkout@v2
|
|
|
|
|
- - name: build
|
|
|
|
|
|
|
+ - name: test
|
|
|
run: |
|
|
run: |
|
|
|
- ./configure
|
|
|
|
|
- make libhv evpp examples unittest
|
|
|
|
|
|
|
+ make check
|
|
|
|
|
+ make run-unittest
|
|
|
|
|
|
|
|
build-windows:
|
|
build-windows:
|
|
|
name: build-windows
|
|
name: build-windows
|
|
@@ -41,7 +35,26 @@ jobs:
|
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
|
- name: build
|
|
- name: build
|
|
|
run: |
|
|
run: |
|
|
|
- mkdir win64
|
|
|
|
|
- cd win64
|
|
|
|
|
|
|
+ mkdir cmake-build-win64
|
|
|
|
|
+ cd cmake-build-win64
|
|
|
cmake .. -G "Visual Studio 17 2022" -A x64
|
|
cmake .. -G "Visual Studio 17 2022" -A x64
|
|
|
cmake --build .
|
|
cmake --build .
|
|
|
|
|
+
|
|
|
|
|
+ build-apple:
|
|
|
|
|
+ name: build-apple
|
|
|
|
|
+ runs-on: macos-latest
|
|
|
|
|
+ steps:
|
|
|
|
|
+ - uses: actions/checkout@v2
|
|
|
|
|
+
|
|
|
|
|
+ - name: build-mac
|
|
|
|
|
+ run: |
|
|
|
|
|
+ ./configure
|
|
|
|
|
+ make libhv evpp examples unittest
|
|
|
|
|
+
|
|
|
|
|
+ - name: build-ios
|
|
|
|
|
+ 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="armv7 arm64"
|
|
|
|
|
+ cmake --build . --target hv_static --config Release
|
|
|
|
|
+
|