Github download

This commit is contained in:
Ganesh Viswanathan 2018-11-02 22:26:46 -05:00
commit 81fa6d15ba

View file

@ -10,12 +10,11 @@ addons:
- libssh2-1-dev
before_script:
- curl -u $TOKEN -o latest.json --silent https://api.github.com/repos/nim-lang/nightlies/releases/latest
- curl -u $TOKEN https://api.github.com/repos/nim-lang/nightlies/releases/latest
- cat latest.json
- export RELEASE=`cat latest.json | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
- export TXZ=`cat latest.json | grep '"name":' | sed -E 's/.*"([^"]+)".*/\1/' | grep linux`
- export VERSION=`echo $TXZ | cut -d"-" -f 2,2`
- echo "RELEASE = $RELEASE, TXZ = $TXZ, VERSION = $VERSION"
- curl -L --silent -o $TXZ "https://github.com/nim-lang/nightlies/releases/download/$RELEASE/$TXZ"
- tar xf $TXZ
- cd nim-$VERSION
- sh build.sh