mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
refactor(ci): use go env instead of hardcoding OS and arch information
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user