aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2018-07-13 13:12:46 -0500
committerGanesh Viswanathan <dev@genotrance.com>2018-07-13 13:12:46 -0500
commitd1aaf70e25d00e33d6978a8c225defff25efb3b4 (patch)
tree28470ff1752d0a1c12af1fd15e5239a9b02276a5
parent2cfad92753025f5be7323af7e4fa58e3633e2eff (diff)
downloadnimgen-d1aaf70e25d00e33d6978a8c225defff25efb3b4.tar.gz
nimgen-d1aaf70e25d00e33d6978a8c225defff25efb3b4.zip
Cache Linux binary
-rw-r--r--appveyor.yml17
1 files changed, 9 insertions, 8 deletions
diff --git a/appveyor.yml b/appveyor.yml
index bcadda0..f0d5fac 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -65,10 +65,10 @@ for:
- appveyor PushArtifact nimgen-docs.zip
cache:
- - c:\projects\i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
- - c:\projects\mingw-w64-i686-libssh2-1.8.0-1-any.pkg.tar.xz
- - c:\projects\mingw-w64-i686-openssl-1.0.2.o-1-any.pkg.tar.xz
- - c:\projects\nim-0.18.0_x32.zip
+ - %BASE_DIR%\i686-8.1.0-release-posix-dwarf-rt_v6-rev0.7z
+ - %BASE_DIR%\mingw-w64-i686-libssh2-1.8.0-1-any.pkg.tar.xz
+ - %BASE_DIR%\mingw-w64-i686-openssl-1.0.2.o-1-any.pkg.tar.xz
+ - %BASE_DIR%\nim-0.18.0_x32.zip
-
matrix:
@@ -79,11 +79,12 @@ for:
NIM_URL: https://nim-lang.org/download/nim-0.18.0.tar.xz
NIM_ARCHIVE: nim-0.18.0.tar.xz
NIM_VERSION: nim-0.18.0
+ BASE_DIR: /home/appveyor/projects
install:
- sudo apt -qq update
- sudo apt -qq install --yes python-pygments libssh2-1-dev libgcrypt20-dev libgpg-error-dev
- - cd ~/projects
+ - cd $BASE_DIR
- if [ ! -e $NIM_ARCHIVE ]; then curl -s -o $NIM_ARCHIVE $NIM_URL; fi
- tar xJf $NIM_ARCHIVE
- cd $NIM_VERSION
@@ -91,15 +92,15 @@ for:
- bin/nim c -d:release koch
- ./koch boot -d:release
- ./koch nimble -d:release
- - export PATH=~/projects/$NIM_VERSION/bin:~/.nimble/bin:$PATH
- - cd ~/projects/nimgen
+ - export PATH=$BASE_DIR/$NIM_VERSION/bin:~/.nimble/bin:$PATH
+ - cd $BASE_DIR/nimgen
on_finish:
- zip -r -q buildlogs-lin.zip ~/.nimble/pkgs
- appveyor PushArtifact buildlogs-lin.zip
cache:
- - ~/projects/nim-0.18.0.tar.xz
+ - $BASE_DIR/nim-0.18.0.tar.xz
build_script:
- nimble install -y