Update windows-ci.yml [skip ci]

This commit is contained in:
halx99 2021-08-27 01:31:35 +08:00 committed by GitHub
parent 17c4fe4ef1
commit 8edba91897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 14 deletions

View File

@ -23,6 +23,15 @@ jobs:
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: windows-latest
strategy:
matrix:
arch:
- x86
- x64
env:
BUILD_TARGET: windows
BUILD_ARCH: ${{ matrix.arch }}
steps:
- uses: actions/checkout@v2
with:
@ -32,18 +41,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v2
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
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
- uses: ilammy/msvc-dev-cmd@v1.9.0
with:
arch: ${{ env.BUILD_ARCH }}
- name: Build
shell: cmd
# 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
run: tools\windows-ci\build.ps1 $env:BUILD_ARCH