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-08 15:34:23 +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
|
2022-10-13 21:44:42 +08:00
|
|
|
PULL_REQUEST: yes
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
jobs:
|
2023-08-25 16:57:54 +08:00
|
|
|
build-win32:
|
2020-10-25 20:15:49 +08:00
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2023-02-25 11:06:54 +08:00
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
2023-09-26 00:56:43 +08:00
|
|
|
with:
|
|
|
|
toolset: '14.37'
|
2023-01-12 11:38:08 +08:00
|
|
|
arch: ${{ env.BUILD_ARCH }}
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2023-07-15 22:39:32 +08:00
|
|
|
run: .\build.ps1 -p win32 -a x64
|
2023-04-02 16:04:19 +08:00
|
|
|
|
2023-03-11 22:10:18 +08:00
|
|
|
build-winuwp:
|
|
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
|
|
|
- uses: ilammy/msvc-dev-cmd@v1.12.1
|
2023-09-26 00:56:43 +08:00
|
|
|
with:
|
|
|
|
toolset: '14.37'
|
2023-06-24 11:54:33 +08:00
|
|
|
arch: x64
|
2023-03-11 22:10:18 +08:00
|
|
|
uwp: true
|
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2023-09-26 00:11:33 +08:00
|
|
|
run: .\build.ps1 -p winuwp -a x64 -xb '--config', 'Debug'
|
2023-03-11 22:10:18 +08:00
|
|
|
|
2020-10-25 20:15:49 +08:00
|
|
|
build-linux:
|
2021-09-20 18:24:11 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2023-06-29 19:46:52 +08:00
|
|
|
- name: Install deps
|
|
|
|
# Some projects don't allow in-source building, so create a separate build directory
|
|
|
|
# We'll use this as our working directory for all subsequent commands
|
2020-10-25 20:15:49 +08:00
|
|
|
run: |
|
2023-06-29 19:46:52 +08:00
|
|
|
AX_ROOT=`pwd`
|
2023-07-06 12:22:41 +08:00
|
|
|
echo -e "y" | pwsh $AX_ROOT/setup.ps1
|
2023-06-29 19:46:52 +08:00
|
|
|
- name: Build
|
|
|
|
shell: pwsh
|
2023-07-01 08:52:14 +08:00
|
|
|
run: ./build.ps1 -p linux -a x64
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
build-android:
|
2022-08-18 09:13:09 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2020-10-25 20:15:49 +08:00
|
|
|
run: |
|
2023-06-29 19:46:52 +08:00
|
|
|
$AX_ROOT = $(Get-Location).Path
|
2023-07-15 22:39:32 +08:00
|
|
|
./build.ps1 -p android -a arm64
|
2023-11-06 09:32:53 +08:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: android_artifact
|
|
|
|
path: |
|
|
|
|
templates/**/*.apk
|
|
|
|
tests/**/*.apk
|
2020-10-25 20:15:49 +08:00
|
|
|
|
|
|
|
build-osx:
|
2022-08-18 09:13:09 +08:00
|
|
|
runs-on: macos-12
|
2020-10-25 20:15:49 +08:00
|
|
|
steps:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2023-07-15 22:39:32 +08:00
|
|
|
run: ./build.ps1 -p osx -a x64
|
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-31 12:12:40 +08:00
|
|
|
GH_OS_NAME: osx
|
2020-10-25 20:15:49 +08:00
|
|
|
BUILD_TARGET: ios
|
|
|
|
steps:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2020-10-25 20:19:28 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-10-23 13:32:18 +08:00
|
|
|
|
2020-10-25 20:15:49 +08:00
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2023-07-15 22:39:32 +08:00
|
|
|
run: ./build.ps1 -p ios -a x64
|
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:
|
2022-10-20 22:20:33 +08:00
|
|
|
- uses: actions/checkout@v3
|
2022-09-05 14:13:52 +08:00
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2022-10-23 13:32:18 +08:00
|
|
|
|
2022-09-05 14:13:52 +08:00
|
|
|
- name: Build
|
2023-06-29 19:46:52 +08:00
|
|
|
shell: pwsh
|
2023-09-26 00:11:33 +08:00
|
|
|
run: ./build.ps1 -p tvos -a x64
|