Skip to content

Commit

Permalink
Update Windows CI builds to VS2022 (#425)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Jun 19, 2023
1 parent 2372d4c commit 47dd07a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions jenkins/nightly.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pipeline {
stage('Build R') {
steps {
bat '''
call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
call c:\\progra~2\\micros~1\\2022\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
mkdir build_rel
cd build_rel
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64-cl ..
Expand All @@ -136,7 +136,7 @@ pipeline {
stage('Build D') {
steps {
bat '''
call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
call c:\\progra~2\\micros~1\\2022\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
mkdir build_dbg
cd build_dbg
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Debug -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_ISA_NONE=ON ..
Expand All @@ -154,7 +154,7 @@ pipeline {
stage('Test') {
steps {
bat '''
set Path=c:\\Python38;c:\\Python38\\Scripts;%Path%
set Path=c:\\Python3;c:\\Python3\\Scripts;%Path%
call python ./Test/astc_test_image.py --test-set Small --test-quality medium
'''
}
Expand All @@ -175,10 +175,10 @@ pipeline {
stage('Build R') {
steps {
bat '''
call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
call c:\\progra~2\\micros~1\\2022\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
mkdir build_rel
cd build_rel
cmake -G "Visual Studio 16 2019" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64-clangcl ..
cmake -G "Visual Studio 17 2022" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64-clangcl ..
msbuild astcencoder.sln -property:Configuration=Release
msbuild PACKAGE.vcxproj -property:Configuration=Release
msbuild INSTALL.vcxproj -property:Configuration=Release
Expand All @@ -188,10 +188,10 @@ pipeline {
stage('Build D') {
steps {
bat '''
call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
call c:\\progra~2\\micros~1\\2022\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
mkdir build_dbg
cd build_dbg
cmake -G "Visual Studio 16 2019" -T ClangCL -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
cmake -G "Visual Studio 17 2022" -T ClangCL -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON ..
msbuild astcencoder.sln -property:Configuration=Debug
'''
}
Expand All @@ -206,7 +206,7 @@ pipeline {
stage('Test') {
steps {
bat '''
set Path=c:\\Python38;c:\\Python38\\Scripts;%Path%
set Path=c:\\Python3;c:\\Python3\\Scripts;%Path%
call python ./Test/astc_test_image.py --test-set Small --test-quality medium
'''
}
Expand Down
4 changes: 2 additions & 2 deletions jenkins/release.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ spec:
stage('Build R') {
steps {
bat '''
call c:\\progra~2\\micros~1\\2019\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
call c:\\progra~2\\micros~1\\2022\\buildtools\\vc\\auxiliary\\build\\vcvars64.bat
mkdir build_rel
cd build_rel
cmake -G "Visual Studio 16 2019" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
cmake -G "Visual Studio 17 2022" -T ClangCL -DCMAKE_INSTALL_PREFIX=../ -DASTCENC_ISA_AVX2=ON -DASTCENC_ISA_SSE41=ON -DASTCENC_ISA_SSE2=ON -DASTCENC_PACKAGE=x64 ..
msbuild astcencoder.sln -property:Configuration=Release
msbuild PACKAGE.vcxproj -property:Configuration=Release
msbuild INSTALL.vcxproj -property:Configuration=Release
Expand Down

0 comments on commit 47dd07a

Please sign in to comment.