Skip to content

Commit d1afec0

Browse files
authored
add archives for ARM v6 (#341)
1 parent eb1091c commit d1afec0

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

Diff for: .goreleaser.yml

+16
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ builds:
3535
# ARM
3636
id: arduino_cli_arm
3737
binary: arduino-cli
38+
env:
39+
- CGO_ENABLED=1
40+
- CC=/usr/arm-linux-gnueabi/bin/cc
41+
goos:
42+
- linux
43+
goarch:
44+
- arm
45+
goarm:
46+
- 6
47+
ldflags:
48+
- -s -w -X github.com/arduino/arduino-cli/version.versionString={{.Tag}} -X github.com/arduino/arduino-cli/version.commit=={{ .ShortCommit }}
49+
- "-extldflags '-static'"
50+
-
51+
# ARMv7
52+
id: arduino_cli_armv7
53+
binary: arduino-cli
3854
env:
3955
- CGO_ENABLED=1
4056
- CC=/usr/arm-linux-gnueabihf/bin/cc

Diff for: install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ initArch() {
3434
ARCH=$(uname -m)
3535
case $ARCH in
3636
armv5*) ARCH="armv5";;
37-
armv6*) ARCH="armv6";;
37+
armv6*) ARCH="ARMv6";;
3838
armv7*) ARCH="ARMv7";;
3939
aarch64) ARCH="ARM64";;
4040
x86) ARCH="32bit";;

0 commit comments

Comments
 (0)