mirror of https://github.com/liamg/aminal.git
cross-compile amd64 on linux
This commit is contained in:
parent
cf504590b2
commit
d20b67f928
|
@ -13,7 +13,7 @@ matrix:
|
|||
go_import_path: github.com/liamg/aminal
|
||||
before_install:
|
||||
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install -y xorg-dev libgl1-mesa-dev
|
||||
gcc-multilib gcc-mingw-w64 && go get github.com/mitchellh/gox; fi
|
||||
gcc-multilib gcc-mingw-w64-x86-64 && go get github.com/mitchellh/gox; fi
|
||||
script:
|
||||
- make test
|
||||
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then make build-darwin-native; fi
|
||||
|
@ -30,7 +30,7 @@ deploy:
|
|||
file:
|
||||
- bin/darwin/aminal-darwin-amd64
|
||||
- bin/linux/aminal-linux-amd64
|
||||
- bin/windows/aminal-windows-386.exe
|
||||
- bin/windows/aminal-windows-amd64.exe
|
||||
on:
|
||||
repo: jumptrading/aminal
|
||||
tags: true
|
||||
|
|
2
Makefile
2
Makefile
|
@ -28,7 +28,7 @@ build-linux:
|
|||
.PHONY: windows-cross-compile
|
||||
windows-cross-compile:
|
||||
mkdir -p bin/windows
|
||||
GOOS=windows GOARCH=386 CGO_ENABLED=1 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc go build -o bin/windows/${BINARY}-windows-386.exe -ldflags "-X github.com/liamg/aminal/version.Version=${TRAVIS_TAG}"
|
||||
GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CXX=x86_64-w64-mingw32-g++ CC=x86_64-w64-mingw32-gcc go build -o bin/windows/${BINARY}-windows-amd64.exe -ldflags "-X github.com/liamg/aminal/version.Version=${TRAVIS_TAG}"
|
||||
|
||||
.PHONY: build-windows
|
||||
build-windows:
|
||||
|
|
Loading…
Reference in New Issue