Update pr-ci.yml

This commit is contained in:
halx99 2021-08-27 01:51:02 +08:00 committed by GitHub
parent 75644ae251
commit d47a6712b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 6 deletions

View File

@ -19,9 +19,17 @@ env:
GITHUB_CI: true
jobs:
build-win32:
name: build-win32
build-windows:
name: build-windows
runs-on: windows-latest
strategy:
matrix:
arch:
- x86
- x64
env:
BUILD_TARGET: windows
BUILD_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
with:
@ -30,10 +38,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
- name: Build
shell: cmd
run: |
cmake -S %GITHUB_WORKSPACE% -B %GITHUB_WORKSPACE%/build_x86 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -A Win32 -DBUILD_EXTENSION_IMGUIEXT=ON
cmake --build %GITHUB_WORKSPACE%/build_x86 --config %BUILD_TYPE% --target cpp-tests
run: tools\windows-ci\build.ps1 $env:BUILD_ARCH
build-linux:
name: build-linux