diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-01-12 00:22:51 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-01-12 00:22:51 +0200 |
commit | de39ec86ffdb4d45231c55b6d641b13e0eeaa07d (patch) | |
tree | cb81f1065b3bec8e1047f0e79b7c004becb5c9c2 /scripts/ci | |
parent | 7433db1274a77df01f3ff0f7f33b58148a1991b5 (diff) |
Update CI script again
Diffstat (limited to 'scripts/ci')
-rwxr-xr-x | scripts/ci | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,11 +1,13 @@ #!/bin/bash -source /etc/environment -mkdir -p .tmp.gopath -mkdir -p target/ -export GOPATH=$(pwd)/.tmp.gopath +mkdir -p ../.gopath +mkdir -p target +mkdir -p .tmp +export GOPATH=$(dirname $(pwd))/.gopath export SHORTHEAD=${HEAD:0:7} export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//') +export CGO_ENABLED=0 + echo "Compiling for linux/amd64" go build -o "target/$PROJECT_NAME-linux-amd64" echo "Compiling for linux/386" @@ -22,7 +24,7 @@ mkdir -p deb/usr/bin/ cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks -git clone https://github.com/tulir/tcell.git .tmp.tcell +git clone https://github.com/tulir/tcell.git .tmp/tcell mkdir -p deb/usr/share/tcell/ rm -rf deb/usr/share/tcell/database cp -r .tmp.tcell/terminfo/database deb/usr/share/tcell |