]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
ci: use liblzma 1.5.5 in MSVC build until fix from upstream (#2105)
authorMartin Matuska <martin@matuska.de>
Mon, 1 Apr 2024 17:41:19 +0000 (19:41 +0200)
committerMartin Matuska <martin@matuska.de>
Mon, 1 Apr 2024 17:44:24 +0000 (19:44 +0200)
Signed-off-by: Duncan Horn
build/ci/github_actions/ci.cmd

index 0a50f1c9ad8c76de6d9399939537bf07c50438f8..990475d1b8f08faa517944e9b8ebb372ccbc5a81 100755 (executable)
@@ -2,7 +2,6 @@
 SET ZLIB_VERSION=1.3
 SET BZIP2_VERSION=1ea1ac188ad4b9cb662e3f8314673c63df95a589
 SET XZ_VERSION=5.4.4
-SET ZSTD_VERSION=1.5.6
 IF NOT "%BE%"=="mingw-gcc" (
   IF NOT "%BE%"=="msvc" (
     ECHO Environment variable BE must be mingw-gcc or msvc
@@ -10,6 +9,15 @@ IF NOT "%BE%"=="mingw-gcc" (
   )
 )
 
+REM v1.5.6 has a bug with the CMake files & MSVC
+REM https://github.com/facebook/zstd/issues/3999
+REM Fall back to 1.5.5 for MSVC until fixed
+IF "%BE%"=="msvc" (
+  SET ZSTD_VERSION=1.5.5
+) ELSE (
+  SET ZSTD_VERSION=1.5.6
+)
+
 SET ORIGPATH=%PATH%
 IF "%BE%"=="mingw-gcc" (
   SET MINGWPATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\cmake\bin;C:\ProgramData\mingw64\mingw64\bin