]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
CI: GitHub Actions: use C:\windows\system32\tar.exe as tar on Windows
authorMartin Matuska <martin@matuska.org>
Fri, 28 Feb 2020 10:37:55 +0000 (11:37 +0100)
committerMartin Matuska <martin@matuska.org>
Fri, 28 Feb 2020 10:38:42 +0000 (11:38 +0100)
build/ci/github_actions/ci.cmd

index 7f6ee00de2b5f4574f54067877ff72dd38c7e0b4..c3826ba08797d9e754b058259680eb8292be5efa 100755 (executable)
@@ -25,7 +25,7 @@ IF "%1"=="deplibs" (
   )
   IF NOT EXIST zlib-%ZLIB_VERSION% (
     ECHO Unpacking zlib-%ZLIB_VERSION%.zip
-    tar -x -f zlib-%ZLIB_VERSION%.zip || EXIT /b 1
+    C:\windows\system32\tar.exe -x -f zlib-%ZLIB_VERSION%.zip || EXIT /b 1
   )
   IF NOT EXIST bzip2-%BZIP2_VERSION%.zip (
     echo Downloading https://github.com/libarchive/bzip2/archive/%BZIP2_VERSION%.zip
@@ -33,7 +33,7 @@ IF "%1"=="deplibs" (
   )
   IF NOT EXIST bzip2-%BZIP2_VERSION% (
     echo Unpacking bzip2-%BZIP2_VERSION%.zip
-    tar -x -f bzip2-%BZIP2_VERSION%.zip || EXIT /b 1
+    C:\windows\system32\tar.exe -x -f bzip2-%BZIP2_VERSION%.zip || EXIT /b 1
   )
   IF NOT EXIST xz-%XZ_VERSION%.zip (
     echo Downloading https://github.com/libarchive/xz/archive/%XZ_VERSION%.zip
@@ -41,7 +41,7 @@ IF "%1"=="deplibs" (
   )
   IF NOT EXIST xz-%XZ_VERSION% (
     echo Unpacking xz-%XZ_VERSION%.zip
-    tar -x -f xz-%XZ_VERSION%.zip || EXIT /b 1
+    C:\windows\system32\tar.exe -x -f xz-%XZ_VERSION%.zip || EXIT /b 1
   )
   CD zlib-%ZLIB_VERSION%
   IF "%BE%"=="mingw-gcc" (
@@ -124,7 +124,7 @@ IF "%1"=="deplibs" (
     cmake --build . --target INSTALL --config Release || EXIT /b 1
   )
 ) ELSE IF "%1"=="artifact" (
-    tar -c -C "C:\Program Files (x86)" --format=zip -f libarchive.zip libarchive
+    C:\windows\system32\tar.exe -c -C "C:\Program Files (x86)" --format=zip -f libarchive.zip libarchive
 ) ELSE (
   ECHO "Usage: %0% deplibs|configure|build|test|install|artifact"
   @EXIT /b 0