2020-10-25 20:21:01 +08:00
|
|
|
name: pull_request
|
2020-10-25 20:15:49 +08:00
|
|
|
|
2021-07-07 12:41:15 +08:00
|
|
|
on:
|
|
|
|
pull_request:
|
2021-09-17 16:09:00 +08:00
|
|
|
paths-ignore:
|
2022-07-07 17:42:45 +08:00
|
|
|
- '**.md'
|
2022-07-15 18:51:17 +08:00
|
|
|
- 'docs/**'
|
2022-09-05 14:13:52 +08:00
|
|
|
|
2020-10-25 20:15:49 +08:00
|
|
|
env:
|
|
|
|
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
|
|
|
|
BUILD_TYPE: Release
|
2021-12-30 19:53:30 +08:00
|
|
|
PYENV_VERSION: 2.7.18
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
jobs:
|
2021-08-27 01:51:02 +08:00
|
|
|
build-windows:
|
|
|
|
name: build-windows
|
2020-10-25 20:15:49 +08:00
|
|
|
runs-on: windows-latest
|
2021-08-27 01:51:02 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- x86
|
|
|
|
- x64
|
|
|
|
env:
|
|
|
|
BUILD_ARCH: ${{ matrix.arch }}
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
- name: Build
|
2021-12-30 20:15:42 +08:00
|
|
|
run: tools\win-ci\build.ps1 $env:BUILD_ARCH
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
build-linux:
|
|
|
|
name: build-linux
|
2021-09-20 16:18:08 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-10-25 20:15:49 +08:00
|
|
|
env:
|
2021-12-30 17:47:01 +08:00
|
|
|
GH_OS_NAME: linux
|
2020-10-25 20:15:49 +08:00
|
|
|
BUILD_TARGET: linux
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-12-30 19:40:30 +08:00
|
|
|
tools/unix-ci/before-install.sh
|
|
|
|
tools/unix-ci/run-script.sh
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
build-android:
|
|
|
|
name: build-android
|
2022-08-16 08:26:20 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-06-07 17:28:50 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- armeabi-v7a
|
|
|
|
- arm64-v8a
|
|
|
|
- x86
|
2022-08-14 11:19:56 +08:00
|
|
|
- x86_64
|
2020-10-25 20:15:49 +08:00
|
|
|
env:
|
2021-12-30 17:47:01 +08:00
|
|
|
GH_OS_NAME: linux
|
2020-10-25 20:15:49 +08:00
|
|
|
BUILD_TARGET: android
|
2021-06-07 17:28:50 +08:00
|
|
|
BUILD_ARCH: ${{ matrix.arch }}
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-01-28 15:27:17 +08:00
|
|
|
- uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
distribution: 'microsoft' # See 'Supported distributions' for available options
|
|
|
|
java-version: '11'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-12-30 19:40:30 +08:00
|
|
|
tools/unix-ci/before-install.sh
|
|
|
|
tools/unix-ci/run-script.sh
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
build-osx:
|
|
|
|
name: build-osx
|
2022-08-14 11:19:56 +08:00
|
|
|
runs-on: macos-12
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
arch:
|
|
|
|
- x86_64
|
|
|
|
- arm64
|
2020-10-25 20:15:49 +08:00
|
|
|
env:
|
2021-12-30 17:47:01 +08:00
|
|
|
GH_OS_NAME: osx
|
2020-10-25 20:15:49 +08:00
|
|
|
BUILD_TARGET: osx
|
2022-08-14 11:19:56 +08:00
|
|
|
BUILD_ARCH: ${{ matrix.arch }}
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-08-11 13:08:14 +08:00
|
|
|
# since github latest macos-latest(220807) env(3.24.0) break our ci, so we set cmake version explicit
|
|
|
|
- name: Setup cmake
|
|
|
|
uses: jwlawson/actions-setup-cmake@v1.12
|
|
|
|
with:
|
|
|
|
cmake-version: '3.23.3'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-12-30 19:40:30 +08:00
|
|
|
tools/unix-ci/before-install.sh
|
|
|
|
tools/unix-ci/run-script.sh
|
2022-09-05 14:13:52 +08:00
|
|
|
|
2020-10-25 20:15:49 +08:00
|
|
|
build-ios:
|
|
|
|
name: build-ios
|
|
|
|
runs-on: macos-latest
|
|
|
|
env:
|
2021-12-30 17:47:01 +08:00
|
|
|
GH_OS_NAME: osx
|
2020-10-25 20:15:49 +08:00
|
|
|
BUILD_TARGET: ios
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-08-11 13:08:14 +08:00
|
|
|
# since github latest macos-latest(220807) env(3.24.0) break our ci, so we set cmake version explicit
|
|
|
|
- name: Setup cmake
|
|
|
|
uses: jwlawson/actions-setup-cmake@v1.12
|
|
|
|
with:
|
|
|
|
cmake-version: '3.23.3'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
|
|
|
run: |
|
2021-12-30 19:40:30 +08:00
|
|
|
tools/unix-ci/before-install.sh
|
|
|
|
tools/unix-ci/run-script.sh
|
2022-09-05 14:13:52 +08:00
|
|
|
|
|
|
|
build-tvos:
|
|
|
|
name: build-tvos
|
|
|
|
runs-on: macos-latest
|
|
|
|
env:
|
|
|
|
GH_OS_NAME: osx
|
|
|
|
BUILD_TARGET: tvos
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
# since github latest macos-latest(220807) env(3.24.0) break our ci, so we set cmake version explicit
|
|
|
|
- name: Setup cmake
|
|
|
|
uses: jwlawson/actions-setup-cmake@v1.12
|
|
|
|
with:
|
|
|
|
cmake-version: '3.23.3'
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
tools/unix-ci/before-install.sh
|
|
|
|
tools/unix-ci/run-script.sh
|