mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
CI: Add Windows
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- test
|
||||||
|
|
||||||
|
build windows/x64:
|
||||||
|
stage: build
|
||||||
|
script:
|
||||||
|
- CMD.EXE /C ci\build-windows.bat
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- build
|
||||||
|
expire_in: 3 days
|
||||||
|
tags:
|
||||||
|
- icsneo-windows
|
||||||
|
|
||||||
|
test windows/x64:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- CMD.EXE /C build\libicsneo-tests.exe
|
||||||
|
dependencies:
|
||||||
|
- build windows/x64
|
||||||
|
needs:
|
||||||
|
- build windows/x64
|
||||||
|
tags:
|
||||||
|
- icsneo-windows
|
||||||
|
timeout: 3m
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
call "%VCVARS64%"
|
||||||
|
|
||||||
|
REM clean intermediate directories
|
||||||
|
rmdir /s /q build
|
||||||
|
mkdir build
|
||||||
|
|
||||||
|
REM build
|
||||||
|
cd build
|
||||||
|
cmake -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLIBICSNEO_BUILD_TESTS=ON ..
|
||||||
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
cmake --build .
|
||||||
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
Reference in New Issue
Block a user