refactor(ci): use go env instead of hardcoding OS and arch information

This commit is contained in:
Łukasz Mierzwa
2018-08-20 21:59:55 +01:00
parent 3e6b8e3f72
commit 94f8fef744

View File

@@ -81,8 +81,8 @@ jobs:
- git diff --exit-code
# install bakelite, we can't "go get" a tag from github, so we fetch the binary
- export BAKELITE_VERSION="v0.1.0"
- export BAKELITE_OS="linux"
- export BAKELITE_ARCH="amd64"
- export BAKELITE_OS=$(go env GOHOSTOS)
- export BAKELITE_ARCH="$(go env GOHOSTARCH)"
- curl -L -o bakelite.tar.gz "https://github.com/terinjokes/bakelite/releases/download/${BAKELITE_VERSION}/bakelite-${BAKELITE_OS}-${BAKELITE_ARCH}.tar.gz"
- tar -xf bakelite.tar.gz
# and now compile using bakelite for all target archs