Update CI script again
This commit is contained in:
parent
7433db1274
commit
de39ec86ff
12
scripts/ci
12
scripts/ci
@ -1,11 +1,13 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
source /etc/environment
|
mkdir -p ../.gopath
|
||||||
mkdir -p .tmp.gopath
|
mkdir -p target
|
||||||
mkdir -p target/
|
mkdir -p .tmp
|
||||||
export GOPATH=$(pwd)/.tmp.gopath
|
export GOPATH=$(dirname $(pwd))/.gopath
|
||||||
export SHORTHEAD=${HEAD:0:7}
|
export SHORTHEAD=${HEAD:0:7}
|
||||||
export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//')
|
export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//')
|
||||||
|
|
||||||
|
export CGO_ENABLED=0
|
||||||
|
|
||||||
echo "Compiling for linux/amd64"
|
echo "Compiling for linux/amd64"
|
||||||
go build -o "target/$PROJECT_NAME-linux-amd64"
|
go build -o "target/$PROJECT_NAME-linux-amd64"
|
||||||
echo "Compiling for linux/386"
|
echo "Compiling for linux/386"
|
||||||
@ -22,7 +24,7 @@ mkdir -p deb/usr/bin/
|
|||||||
|
|
||||||
cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks
|
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/
|
mkdir -p deb/usr/share/tcell/
|
||||||
rm -rf deb/usr/share/tcell/database
|
rm -rf deb/usr/share/tcell/database
|
||||||
cp -r .tmp.tcell/terminfo/database deb/usr/share/tcell
|
cp -r .tmp.tcell/terminfo/database deb/usr/share/tcell
|
||||||
|
Loading…
Reference in New Issue
Block a user