mirror of https://github.com/axmolengine/axmol.git
Update windows-ci.yml [skip ci]
This commit is contained in:
parent
17c4fe4ef1
commit
8edba91897
|
@ -23,6 +23,15 @@ jobs:
|
||||||
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
arch:
|
||||||
|
- x86
|
||||||
|
- x64
|
||||||
|
env:
|
||||||
|
BUILD_TARGET: windows
|
||||||
|
BUILD_ARCH: ${{ matrix.arch }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
@ -32,18 +41,9 @@ jobs:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
|
|
||||||
- name: Configure CMake
|
- uses: ilammy/msvc-dev-cmd@v1.9.0
|
||||||
# Use a bash shell so we can use the same syntax for environment variable
|
with:
|
||||||
# access regardless of the host operating system
|
arch: ${{ env.BUILD_ARCH }}
|
||||||
shell: cmd
|
|
||||||
# Note the current convention is to use the -S and -B options here to specify source
|
|
||||||
# and build directories, but this is only available with CMake 3.13 and higher.
|
|
||||||
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
|
|
||||||
run: cmake -S %GITHUB_WORKSPACE% -B %GITHUB_WORKSPACE%/build_x86 -A Win32 -DBUILD_EXTENSION_IMGUIEXT=ON -DLUA_ENGINE=luajit
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
shell: cmd
|
run: tools\windows-ci\build.ps1 $env:BUILD_ARCH
|
||||||
# Execute the build. You can specify a specific target with "--target <NAME>"
|
|
||||||
run: |
|
|
||||||
cmake --build %GITHUB_WORKSPACE%/build_x86 --config Debug --target cpp-tests
|
|
||||||
cmake --build %GITHUB_WORKSPACE%/build_x86 --config Release --target lua-tests
|
|
||||||
|
|
Loading…
Reference in New Issue