mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Try the Windows GitHub Action
This commit is contained in:
parent
e108f8bbbf
commit
4adc453419
33
.github/workflows/windows.yml
vendored
Normal file
33
.github/workflows/windows.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Windows
|
||||||
|
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
CTEST_OUTPUT_ON_FAILURE: 1
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
|
||||||
|
- name: configure
|
||||||
|
run: |
|
||||||
|
cmake -B build/debug -D CMAKE_BUILD_TYPE:STRING=Debug "-DSOL2_LUA_VERSION:STRING=5.4" -DSOL2_PLATFORM=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=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
|
||||||
|
- name: build
|
||||||
|
run: |
|
||||||
|
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
|
||||||
|
cd ../..
|
Loading…
x
Reference in New Issue
Block a user