Skip to content

Commit 736cbce

Browse files
shibatchNaoki Shibata
and
Naoki Shibata
authored
Add windows to jenkins (#625)
Co-authored-by: Naoki Shibata <[email protected]>
1 parent 01c6732 commit 736cbce

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

Jenkinsfile

+17
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ pipeline {
2727
}
2828
}
2929

30+
stage('x86_64 windows vs2022') {
31+
agent { label 'windows11 && vs2022' }
32+
options { skipDefaultCheckout() }
33+
steps {
34+
cleanWs()
35+
checkout scm
36+
bat """
37+
call "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat"
38+
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
39+
call "winbuild-msvc.bat" -DCMAKE_BUILD_TYPE=Release -DSLEEF_SHOW_CONFIG=1 -DSLEEF_BUILD_DFT=TRUE -DSLEEF_BUILD_QUAD=TRUE -DSLEEF_ENFORCE_SSE2=TRUE -DSLEEF_ENFORCE_SSE4=TRUE -DSLEEF_ENFORCE_AVX=TRUE -DSLEEF_ENFORCE_AVX2=TRUE -DSLEEF_ENFORCE_AVX512F=TRUE -DSLEEF_ENABLE_TESTER4=True
40+
if not %ERRORLEVEL% == 0 exit /b %ERRORLEVEL%
41+
ctest -j 4 --output-on-failure
42+
exit /b %ERRORLEVEL%
43+
"""
44+
}
45+
}
46+
3047
stage('riscv linux gcc-13') {
3148
agent { label 'riscv && ubuntu23' }
3249
options { skipDefaultCheckout() }

winbuild-msvc.bat

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
@echo off
2+
if "%INSTALLDIR%"=="" set INSTALLDIR=..\..\sleef_install
3+
4+
if NOT exist winbuild-msvc.bat exit /b 255
5+
6+
if "%VSCMD_ARG_HOST_ARCH%"=="" (
7+
echo Run this batch file from Developer Command Prompt for VS 20XX
8+
exit /b 255
9+
)
10+
11+
if %VSCMD_ARG_HOST_ARCH%==x86 call "%VCINSTALLDIR%Auxiliary\Build\vcvars64.bat"
12+
13+
if exist build\ rmdir /S /Q build
14+
mkdir build
15+
cd build
16+
if exist %INSTALLDIR%\ rmdir /S /Q %INSTALLDIR%
17+
cmake .. -GNinja -DCMAKE_INSTALL_PREFIX=%INSTALLDIR% %*
18+
if not errorlevel 0 exit /b 255
19+
cmake -E time ninja
20+
if not errorlevel 0 exit /b 255
21+
ninja install

0 commit comments

Comments
 (0)