2020-10-28 18:36:18 +08:00
|
|
|
name: Windows
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
env:
|
2021-05-07 13:56:32 +08:00
|
|
|
CTEST_OUTPUT_ON_FAILURE: true
|
|
|
|
UseMultiToolTask: true
|
|
|
|
EnforceProcessCountAcrossBuilds: true
|
|
|
|
|
2020-10-28 18:36:18 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: windows-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- name: configure
|
|
|
|
run: |
|
2021-05-07 13:56:32 +08:00
|
|
|
$env:MultiProcMaxCount = ((Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum + 1)
|
2020-12-19 12:48:42 +08:00
|
|
|
cmake -B build/debug -D CMAKE_BUILD_TYPE:STRING=Debug "-DSOL2_LUA_VERSION:STRING=5.4" -DSOL2_PLATFORM:STRING=x64 -DSOL2_CI=ON -DSOL2_BUILD_LUA:BOOL=ON -DBUILD_LUA_AS_DLL:BOOL=ON -DSOL2_TESTS:BOOL=ON -DSOL2_EXAMPLES:BOOL=ON -DSOL2_TESTS_EXAMPLES:BOOL=ON
|
|
|
|
cmake -B build/release -D CMAKE_BUILD_TYPE:STRING=Release "-DSOL2_LUA_VERSION:STRING=5.4" -DSOL2_PLATFORM:STRING=x64 -DSOL2_CI=ON -DSOL2_BUILD_LUA:BOOL=ON -DBUILD_LUA_AS_DLL:BOOL=ON -DSOL2_TESTS:BOOL=ON -DSOL2_EXAMPLES:BOOL=ON -DSOL2_TESTS_EXAMPLES:BOOL=ON
|
2020-10-28 18:36:18 +08:00
|
|
|
- name: build
|
|
|
|
run: |
|
2021-05-07 13:56:32 +08:00
|
|
|
$env:MultiProcMaxCount = ((Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum + 1)
|
2020-10-28 18:36:18 +08:00
|
|
|
cmake --build build/debug --config Debug
|
|
|
|
cmake --build build/release --config Release
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
cd build/debug
|
|
|
|
ctest --build-config Debug
|
|
|
|
cd ../..
|
|
|
|
cd build/release
|
|
|
|
ctest --build-config Release
|
2020-12-19 12:48:42 +08:00
|
|
|
cd ../..
|