Skip to content

Commit

Permalink
Build for arm and arm64 as well
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
jayme-github committed Apr 11, 2021
1 parent b51b132 commit 2e6057d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:

matrix:
include:
- go: 1.14.x
- go: 1.16.x
env:
- LATEST=true
- go: tip
Expand All @@ -27,7 +27,8 @@ install:
script:
- go vet $(go list ./... | grep -v /vendor/)
- go test -v ./...
- if [ "${LATEST}" = "true" ]; then gox -os="linux darwin windows" -arch="amd64 386" -output="build/fritzbox_smarthome_exporter.{{.OS}}.{{.Arch}}" -ldflags "-extldflags \"-static\" -X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
- if [ "${LATEST}" = "true" ]; then gox -os="darwin" -os="linux" -os="windows" -arch="amd64" -arch="arm64" -osarch="linux/386" -osarch="linux/arm" -osarch="windows/386"
-output="build/fritzbox_smarthome_exporter.{{.OS}}.{{.Arch}}" -ldflags "-extldflags \"-static\" -X main.Rev=`git rev-parse --short HEAD`" -verbose ./...; fi
- if [ "${LATEST}" = "true" -a -n "${TRAVIS_TAG}" ]; then docker build -t "jaymedh/fritzbox_smarthome_exporter:${TRAVIS_TAG}" .; fi

deploy:
Expand Down

0 comments on commit 2e6057d

Please sign in to comment.