axmol/.github/workflows/pr-ci.yml

113 lines
2.5 KiB
YAML
Raw Normal View History

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:
paths:
- cmake/**/*
- cocos/**/*
- extensions/**/*
- tests/**/*
- thirdparty/**/*
- CMakeLists.txt
- .github/workflows/pr-ci.yml
2020-10-25 20:15:49 +08:00
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
# Simple let github action to build all (TODO: optimize in the future)
TRAVIS_PULL_REQUEST: true
GITHUB_CI: true
jobs:
build-windows:
name: build-windows
2020-10-25 20:15:49 +08:00
runs-on: windows-latest
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'
lfs: 'true'
2020-10-25 20:15:49 +08:00
- name: Setup Python
uses: actions/setup-python@v2
- name: Build
run: tools\windows-ci\build.ps1 $env:BUILD_ARCH
2020-10-25 20:15:49 +08:00
build-linux:
name: build-linux
2021-05-24 21:43:06 +08:00
runs-on: ubuntu-20.04
2020-10-25 20:15:49 +08:00
env:
TRAVIS_OS_NAME: linux
BUILD_TARGET: linux
steps:
- uses: actions/checkout@v2
2020-10-25 20:19:28 +08:00
with:
submodules: 'recursive'
lfs: 'true'
2020-10-25 20:15:49 +08:00
- name: Build
run: |
tools/travis-scripts/before-install.sh
tools/travis-scripts/run-script.sh
build-android:
name: build-android
2020-11-12 18:07:52 +08:00
runs-on: ubuntu-18.04
2021-06-07 17:28:50 +08:00
strategy:
matrix:
arch:
- armeabi-v7a
- arm64-v8a
- x86
2020-10-25 20:15:49 +08:00
env:
TRAVIS_OS_NAME: linux
BUILD_TARGET: android
PYENV_VERSION: 2.7.18
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'
lfs: 'true'
2020-10-25 20:15:49 +08:00
- name: Build
run: |
tools/travis-scripts/before-install.sh
tools/travis-scripts/run-script.sh
build-osx:
name: build-osx
runs-on: macos-latest
env:
TRAVIS_OS_NAME: osx
BUILD_TARGET: osx
steps:
- uses: actions/checkout@v2
2020-10-25 20:19:28 +08:00
with:
submodules: 'recursive'
lfs: 'true'
2020-10-25 20:15:49 +08:00
- name: Build
run: |
tools/travis-scripts/before-install.sh
tools/travis-scripts/run-script.sh
build-ios:
name: build-ios
runs-on: macos-latest
env:
TRAVIS_OS_NAME: osx
BUILD_TARGET: ios
steps:
- uses: actions/checkout@v2
2020-10-25 20:19:28 +08:00
with:
submodules: 'recursive'
lfs: 'true'
2020-10-25 20:15:49 +08:00
- name: Build
run: |
tools/travis-scripts/before-install.sh
2021-05-24 21:43:06 +08:00
tools/travis-scripts/run-script.sh