Skip to content

Commit

Permalink
Try to fix arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
godwhoa committed Feb 19, 2018
1 parent f9aa578 commit 16d4ccd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ language: go
go:
- 1.9
before_install:
- sudo apt-get install gcc-4.8-arm-linux-gnueabihf
- go get -u github.com/golang/dep/cmd/dep
install:
- dep ensure
script:
- GOOS=linux go build -o oodle_linux -a -tags netgo -ldflags '-extldflags "-static"'
- GOOS=linux GOARCH=arm GOARM=7 go build -o oodle_linux_armv7 -a -tags netgo -ldflags '-extldflags "-static"'
- GOOS=linux GOARCH=arm GOARM=7 CC=arm-linux-gnueabihf-gcc-4.8 CGO_ENABLED=1 go build -o oodle_linux_armv7 -a -tags netgo -ldflags "-linkmode external -extldflags -static"
deploy:
provider: releases
api_key:
Expand Down

0 comments on commit 16d4ccd

Please sign in to comment.