Skip to content

Commit b627244

Browse files
committed
add arm32v6 support
1 parent bbbeea7 commit b627244

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

release.sh

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ function run_docker_linux_arm64v8 {
8383
./compile-linux.sh -ldflags "$VERSION_FLAGS" -o "dist/grok_exporter-$VERSION.linux-arm64v8/grok_exporter"
8484
}
8585

86-
function run_docker_linux_arm32v7 {
86+
function run_docker_linux_arm32v6 {
8787
docker run \
8888
-v $GOPATH/src/github.com/fstab/grok_exporter:/root/go/src/github.com/fstab/grok_exporter \
8989
--net none \
90-
--rm -ti fstab/grok_exporter-compiler-arm32v7:latest \
91-
./compile-linux.sh -ldflags "$VERSION_FLAGS" -o "dist/grok_exporter-$VERSION.linux-arm32v7/grok_exporter"
90+
--rm -ti fstab/grok_exporter-compiler-arm32v6 \
91+
./compile-linux.sh -ldflags "$VERSION_FLAGS" -o "dist/grok_exporter-$VERSION.linux-arm32v6/grok_exporter"
9292
}
9393

9494
#--------------------------------------------------------------
@@ -109,10 +109,12 @@ function release_linux_arm64v8 {
109109
create_zip_file grok_exporter-$VERSION.linux-arm64v8
110110
}
111111

112-
function release_linux_arm32v7 {
113-
echo "Building dist/grok_exporter-$VERSION.linux-arm32v7.zip"
114-
run_docker_linux_arm32v7
115-
create_zip_file grok_exporter-$VERSION.linux-arm32v7
112+
function release_linux_arm32v6 {
113+
echo "Building dist/grok_exporter-$VERSION.linux-arm32v6.zip"
114+
enable_legacy_static_linking
115+
run_docker_linux_arm32v6
116+
revert_legacy_static_linking
117+
create_zip_file grok_exporter-$VERSION.linux-arm32v6
116118
}
117119

118120
function release_windows_amd64 {
@@ -144,10 +146,10 @@ case $1 in
144146
run_tests
145147
release_linux_arm64v8
146148
;;
147-
linux-arm32v7)
148-
rm -rf dist/grok_exporter-*.linux-arm32v7*
149+
linux-arm32v6)
150+
rm -rf dist/grok_exporter-*.linux-arm32v6*
149151
run_tests
150-
release_linux_arm32v7
152+
release_linux_arm32v6
151153
;;
152154
darwin-amd64)
153155
rm -rf dist/grok_exporter-*.darwin-amd64*
@@ -173,7 +175,7 @@ case $1 in
173175
echo ' - darwin-amd64' >&2
174176
echo ' - windows-amd64' >&2
175177
echo ' - linux-arm64v8' >&2
176-
echo ' - linux-arm32v7' >&2
178+
echo ' - linux-arm32v6' >&2
177179
echo ' - all-amd64' >&2
178180
exit -1
179181
esac

0 commit comments

Comments
 (0)