mirror of https://github.com/axmolengine/axmol.git
Reduce pull-request ci jobs
This commit is contained in:
parent
c2d7bdcb45
commit
2f2ace9dbd
|
@ -12,19 +12,8 @@ env:
|
||||||
PULL_REQUEST: yes
|
PULL_REQUEST: yes
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-win:
|
||||||
name: build-windows
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
config:
|
|
||||||
- {arch: x86, dll: false}
|
|
||||||
- {arch: x64, dll: false}
|
|
||||||
- {arch: x86, dll: true}
|
|
||||||
- {arch: x64, dll: true}
|
|
||||||
env:
|
|
||||||
BUILD_ARCH: ${{ matrix.config.arch }}
|
|
||||||
BUILD_DLL: ${{ matrix.config.dll }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -38,34 +27,9 @@ jobs:
|
||||||
arch: ${{ env.BUILD_ARCH }}
|
arch: ${{ env.BUILD_ARCH }}
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: .\build.ps1 -p win32 -a $env:BUILD_ARCH -dll $env:BUILD_DLL
|
run: .\build.ps1 -p win32 -a x64
|
||||||
|
|
||||||
build-windows-clang:
|
|
||||||
runs-on: windows-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch:
|
|
||||||
- x64
|
|
||||||
env:
|
|
||||||
BUILD_ARCH: ${{ matrix.arch }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
submodules: 'recursive'
|
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.7.8'
|
|
||||||
- name: Install LLVM and Clang
|
|
||||||
uses: KyleMayes/install-llvm-action@v1
|
|
||||||
with:
|
|
||||||
version: "16.0"
|
|
||||||
- name: Build
|
|
||||||
shell: pwsh
|
|
||||||
run: .\build.ps1 -p win32 -a x64 -cc clang
|
|
||||||
|
|
||||||
build-winuwp:
|
build-winuwp:
|
||||||
name: build-winuwp
|
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -84,11 +48,7 @@ jobs:
|
||||||
run: .\build.ps1 -p winuwp -a x64
|
run: .\build.ps1 -p winuwp -a x64
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
name: build-linux
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
|
||||||
GH_OS_NAME: linux
|
|
||||||
BUILD_TARGET: linux
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -104,19 +64,7 @@ jobs:
|
||||||
run: ./build.ps1 -p linux -a x64
|
run: ./build.ps1 -p linux -a x64
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
name: build-android
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch:
|
|
||||||
- armv7
|
|
||||||
- arm64
|
|
||||||
- x86
|
|
||||||
- x64
|
|
||||||
env:
|
|
||||||
GH_OS_NAME: linux
|
|
||||||
BUILD_TARGET: android
|
|
||||||
BUILD_ARCH: ${{ matrix.arch }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -125,29 +73,17 @@ jobs:
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
$AX_ROOT = $(Get-Location).Path
|
$AX_ROOT = $(Get-Location).Path
|
||||||
./build.ps1 -p android -a $env:BUILD_ARCH
|
./build.ps1 -p android -a arm64
|
||||||
|
|
||||||
build-osx:
|
build-osx:
|
||||||
name: build-osx
|
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch:
|
|
||||||
- x86_64
|
|
||||||
- arm64
|
|
||||||
env:
|
|
||||||
GH_OS_NAME: osx
|
|
||||||
BUILD_TARGET: osx
|
|
||||||
BUILD_ARCH: ${{ matrix.arch }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: 'recursive'
|
submodules: 'recursive'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: ./build.ps1 -p osx -a x64
|
||||||
./build.ps1 -p osx -a $env:BUILD_ARCH
|
|
||||||
|
|
||||||
build-ios:
|
build-ios:
|
||||||
name: build-ios
|
name: build-ios
|
||||||
|
@ -162,7 +98,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: ./build.ps1 -p ios -a 'x64'
|
run: ./build.ps1 -p ios -a x64
|
||||||
|
|
||||||
build-tvos:
|
build-tvos:
|
||||||
name: build-tvos
|
name: build-tvos
|
||||||
|
@ -177,5 +113,4 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: ./build.ps1 -p tvos -a x64
|
||||||
./build.ps1 -p tvos -a 'x64'
|
|
||||||
|
|
Loading…
Reference in New Issue