Build win32 Debug and Release [ci build]

This commit is contained in:
halx99 2021-06-02 05:43:20 +08:00 committed by GitHub
parent f0dc1582fb
commit ca98f43808
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 7 deletions

View File

@ -2,10 +2,6 @@ name: win32
on: [push] on: [push]
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs: jobs:
build: build:
if: "contains(github.event.commits[0].message, '[ci build]')" if: "contains(github.event.commits[0].message, '[ci build]')"
@ -30,11 +26,11 @@ jobs:
# Note the current convention is to use the -S and -B options here to specify source # 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. # 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 # 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 -DCMAKE_BUILD_TYPE=%BUILD_TYPE% -A Win32 -DBUILD_EXTENSION_IMGUIEXT=ON -DLUA_ENGINE=luajit 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 shell: cmd
# Execute the build. You can specify a specific target with "--target <NAME>" # Execute the build. You can specify a specific target with "--target <NAME>"
run: | run: |
cmake --build %GITHUB_WORKSPACE%/build_x86 --config %BUILD_TYPE% --target cpp-tests cmake --build %GITHUB_WORKSPACE%/build_x86 --config Debug --target cpp-tests
cmake --build %GITHUB_WORKSPACE%/build_x86 --config %BUILD_TYPE% --target lua-tests cmake --build %GITHUB_WORKSPACE%/build_x86 --config Release --target lua-tests