]> granicus.if.org Git - libjpeg-turbo/commitdiff
appveyor.yml: Cache NASM binary package
authorDRC <information@libjpeg-turbo.org>
Thu, 14 Feb 2019 16:01:16 +0000 (10:01 -0600)
committerDRC <information@libjpeg-turbo.org>
Mon, 25 Feb 2019 17:35:48 +0000 (11:35 -0600)
... since www.nasm.us seems to be down frequently.  This doesn't help us
at the moment, but hopefully once the site is back up this will prevent
future build failures.

appveyor.yml

index 76e40af1e1d6a189014790614579e1f883da0497..c498ed427799c0a48de20c8d1dbff55840b2e05d 100644 (file)
@@ -1,10 +1,10 @@
 install:
   - cmd: >-
-      mkdir c:\installers
+      if not exist c:\installers mkdir c:\installers
 
       mkdir c:\temp
 
-      curl -fSL -o c:\installers\nasm-2.10.01-win32.zip http://www.nasm.us/pub/nasm/releasebuilds/2.10.01/win32/nasm-2.10.01-win32.zip
+      if not exist c:\installers\nasm-2.10.01-win32.zip curl -fSL -o c:\installers\nasm-2.10.01-win32.zip http://www.nasm.us/pub/nasm/releasebuilds/2.10.01/win32/nasm-2.10.01-win32.zip
 
       7z x c:\installers\nasm-2.10.01-win32.zip -oc:\ > c:\installers\nasm.install.log
 
@@ -22,6 +22,9 @@ install:
 
       git clone --depth=1 https://github.com/libjpeg-turbo/buildscripts.git -b %APPVEYOR_REPO_BRANCH% c:/buildscripts
 
+cache:
+  - c:\installers\nasm-2.10.01-win32.zip -> appveyor.yml
+
 build_script:
   - cmd: >-
       for /f %%i in ('"cygpath %CD%"') do set MINGWPATH=%%i