]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
ci (GitHub Actions): build on Windows 2022 and use Visual Studio 17 2022
authorMartin Matuska <martin@matuska.org>
Thu, 17 Feb 2022 16:09:00 +0000 (17:09 +0100)
committerMartin Matuska <martin@matuska.org>
Thu, 17 Feb 2022 16:10:51 +0000 (17:10 +0100)
.github/workflows/ci.yml
build/ci/github_actions/ci.cmd

index a96841741d23694a50a1fd66b6992f1e8fee9e16..0b1565ae18812aec8ef5bbb8cbadca5d5cbc4473 100644 (file)
@@ -104,7 +104,7 @@ jobs:
         path: libarchive-dist.tar
 
   Windows:
-    runs-on: windows-latest
+    runs-on: windows-2022
     strategy:
       matrix:
         be: [mingw-gcc, msvc]
index 23e2a949ea1a52e14a2ccc7ece5fbba6a74b5c99..7adb98f913a5db3a5f8b14f54ca2f2ec401d6fa4 100755 (executable)
@@ -51,7 +51,7 @@ IF "%1"=="deplibs" (
     mingw32-make test || EXIT /b 1
     mingw32-make install || EXIT /b 1
   ) ELSE IF "%BE%"=="msvc" (
-    cmake -G "Visual Studio 16 2019" . || EXIT /b 1
+    cmake -G "Visual Studio 17 2022" . || EXIT /b 1
     cmake --build . --target ALL_BUILD --config Release || EXIT /b 1
     cmake --build . --target RUN_TESTS --config Release || EXIT /b 1
     cmake --build . --target INSTALL --config Release || EXIT /b 1
@@ -65,7 +65,7 @@ IF "%1"=="deplibs" (
     REM mingw32-make test || EXIT /b 1
     mingw32-make install || EXIT /b 1
   ) ELSE IF "%BE%"=="msvc" (
-    cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE="Release" -D ENABLE_LIB_ONLY=ON -D ENABLE_SHARED_LIB=OFF -D ENABLE_STATIC_LIB=ON . || EXIT /b 1
+    cmake -G "Visual Studio 17 2022" -D CMAKE_BUILD_TYPE="Release" -D ENABLE_LIB_ONLY=ON -D ENABLE_SHARED_LIB=OFF -D ENABLE_STATIC_LIB=ON . || EXIT /b 1
     cmake --build . --target ALL_BUILD --config Release || EXIT /b 1
     REM cmake --build . --target RUN_TESTS --config Release || EXIT /b 1
     cmake --build . --target INSTALL --config Release || EXIT /b 1
@@ -78,7 +78,7 @@ IF "%1"=="deplibs" (
     mingw32-make || EXIT /b 1
     mingw32-make install || EXIT /b 1
   ) ELSE IF "%BE%"=="msvc" (
-    cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE="Release" . || EXIT /b 1
+    cmake -G "Visual Studio 17 2022" -D CMAKE_BUILD_TYPE="Release" . || EXIT /b 1
     cmake --build . --target ALL_BUILD --config Release || EXIT /b 1
     cmake --build . --target INSTALL --config Release || EXIT /b 1
   )
@@ -91,7 +91,7 @@ IF "%1"=="deplibs" (
   ) ELSE IF "%BE%"=="msvc" (
     MKDIR build_ci\cmake
     CD build_ci\cmake
-    cmake -G "Visual Studio 16 2019" -D CMAKE_BUILD_TYPE="Release" -D ZLIB_LIBRARY="C:/Program Files (x86)/zlib/lib/zlibstatic.lib" -D ZLIB_INCLUDE_DIR="C:/Program Files (x86)/zlib/include" -D BZIP2_LIBRARIES="C:/Program Files (x86)/bzip2/lib/bz2.lib" -D BZIP2_INCLUDE_DIR="C:/Program Files (x86)/bzip2/include" -D LIBLZMA_LIBRARY="C:/Program Files (x86)/xz/lib/liblzma.lib" -D LIBLZMA_INCLUDE_DIR="C:/Program Files (x86)/xz/include" ..\.. || EXIT /b 1
+    cmake -G "Visual Studio 17 2022" -D CMAKE_BUILD_TYPE="Release" -D ZLIB_LIBRARY="C:/Program Files (x86)/zlib/lib/zlibstatic.lib" -D ZLIB_INCLUDE_DIR="C:/Program Files (x86)/zlib/include" -D BZIP2_LIBRARIES="C:/Program Files (x86)/bzip2/lib/bz2.lib" -D BZIP2_INCLUDE_DIR="C:/Program Files (x86)/bzip2/include" -D LIBLZMA_LIBRARY="C:/Program Files (x86)/xz/lib/liblzma.lib" -D LIBLZMA_INCLUDE_DIR="C:/Program Files (x86)/xz/include" ..\.. || EXIT /b 1
   )
 ) ELSE IF "%1%"=="build" (
   IF "%BE%"=="mingw-gcc" (