Skip to content

Commit bf40d54

Browse files
committed
build: install go bindata beforehand
1 parent c76e60b commit bf40d54

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ jobs:
8888
uses: actions/download-artifact@v2
8989
with:
9090
name: ui-tar
91+
- name: install-go-bindata
92+
run: go get -u github.com/go-bindata/go-bindata/...
9193
- name: Compile binaries
9294
run: ./hack/build-all.bash
9395
env:

hack/build-all.bash

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ COMMIT_HASH=$(git rev-parse --short HEAD 2>/dev/null)
1818
DATE=$(date "+%Y-%m-%d")
1919
BUILD_PLATFORM=$(uname -a | awk '{print tolower($1);}')
2020

21+
echo "Current working directory is $(pwd)"
22+
echo "PATH is $PATH"
23+
echo "GOPATH is $GOPATH"
24+
2125
if [[ "$(pwd)" != "${DEVSPACE_ROOT}" ]]; then
2226
echo "you are not in the root of the repo" 1>&2
2327
echo "please cd to ${DEVSPACE_ROOT} before running this script" 1>&2
@@ -35,9 +39,6 @@ if [[ -z "${DEVSPACE_BUILD_ARCHS}" ]]; then
3539
DEVSPACE_BUILD_ARCHS="amd64 386"
3640
fi
3741

38-
# Install bin data
39-
go get -mod= -u github.com/go-bindata/go-bindata/...
40-
4142
# Create the release directory
4243
mkdir -p "${DEVSPACE_ROOT}/release"
4344

@@ -52,7 +53,7 @@ GOARCH=386 GOOS=linux go build -ldflags "-s -w -X github.com/devspace-cloud/devs
5253
shasum -a 256 "${DEVSPACE_ROOT}/release/devspacehelper" > "${DEVSPACE_ROOT}/release/devspacehelper".sha256
5354

5455
# build bin data
55-
cd ${DEVSPACE_ROOT} && go-bindata -o assets/assets.go -pkg assets release/devspacehelper release/ui.tar.gz
56+
$GOPATH/bin/go-bindata -o assets/assets.go -pkg assets release/devspacehelper release/ui.tar.gz
5657

5758
for OS in ${DEVSPACE_BUILD_PLATFORMS[@]}; do
5859
for ARCH in ${DEVSPACE_BUILD_ARCHS[@]}; do
@@ -80,5 +81,3 @@ for OS in ${DEVSPACE_BUILD_PLATFORMS[@]}; do
8081
fi
8182
done
8283
done
83-
84-

0 commit comments

Comments
 (0)