File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ if [[ ${arch} == "amd64" ]]; then
38
38
arch=" x86_64"
39
39
elif [[ ${arch} == " x86" ]]; then
40
40
arch=" i686"
41
+ elif [[ ${arch} == " arm64" ]]; then
42
+ # arm64 is not supported for v0.4.40 mdbook, so using x86_64 type.
43
+ # Once the mdbook is upgraded to latest, use 'aarch64'
44
+ arch=" x86_64"
41
45
fi
42
46
43
47
# translate os to rust's conventions (if we can)
63
67
64
68
# grab mdbook
65
69
# we hardcode linux/amd64 since rust uses a different naming scheme and it's a pain to tran
66
- echo " downloading mdBook-v0.4.40-${arch} -${target} .${ext} "
70
+ MDBOOK_VERSION=" v0.4.40"
71
+ MDBOOK_BASENAME=" mdBook-${MDBOOK_VERSION} -${arch} -${target} "
72
+ MDBOOK_URL=" https://github.com/rust-lang/mdBook/releases/download/${MDBOOK_VERSION} /${MDBOOK_BASENAME} .${ext} "
73
+
74
+ echo " downloading ${MDBOOK_BASENAME} .${ext} from ${MDBOOK_URL} "
67
75
set -x
68
- curl -sL -o /tmp/mdbook.${ext} https://github.com/rust-lang/mdBook/releases/download/v0.4.40/mdBook-v0.4.40- ${arch} - ${target} . ${ext}
76
+ curl -fL -o /tmp/mdbook.${ext} " ${MDBOOK_URL} "
69
77
${cmd} /tmp/mdbook.${ext}
70
78
chmod +x /tmp/mdbook
71
79
72
- echo " grabbing the latest released controller-gen"
80
+ CONTROLLER_GEN_VERSION=" v0.18.0"
81
+
82
+ echo " grabbing the controller-gen version: ${CONTROLLER_GEN_VERSION} "
73
83
go version
74
- go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.18.0
84
+ go install sigs.k8s.io/controller-tools/cmd/controller-gen@${CONTROLLER_GEN_VERSION}
75
85
76
86
# make sure we add the go bin directory to our path
77
87
gobin=$( go env GOBIN)
You can’t perform that action at this time.
0 commit comments