File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 24
24
os : macOS-latest
25
25
name : lightmon-x86_64-apple-darwin.tar.gz
26
26
27
+ - target : aarch64-apple-darwin
28
+ os : macOS-latest
29
+ name : lightmon-aarch64-apple-darwin.tar.gz
30
+
27
31
- target : x86_64-pc-windows-msvc
28
32
os : windows-latest
29
33
name : lightmon-x86_64-pc-windows-msvc.zip
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ MAGENTA="$(tput setaf 5 2>/dev/null || printf '')"
15
15
NO_COLOR=" $( tput sgr0 2> /dev/null || printf ' ' ) "
16
16
17
17
SUPPORTED_TARGETS=" x86_64-unknown-linux-gnu i686-unknown-linux-musl \
18
- x86_64 -apple-darwin x86_64-pc-windows-msvc \
19
- i686-pc-wndows-msvc"
18
+ aarch64 -apple-darwin x86_64-apple-darwin \
19
+ x86_64-pc-windows-msvc i686-pc-wndows-msvc"
20
20
21
21
info () {
22
22
printf ' %s\n' " ${BOLD}${GREY} >${NO_COLOR} $* "
@@ -111,11 +111,14 @@ detect_arch() {
111
111
112
112
case " ${arch} " in
113
113
amd64) arch=" x86_64" ;;
114
+ arm64) arch=" aarch64" ;;
114
115
esac
115
116
116
117
# `uname -m` in some cases mis-reports 32bit OS as 64bit, so double check
117
118
if [ " ${arch} " = " x86_64" ] && [ " $( getconf LONG_BIT) " -eq 32 ]; then
118
119
arch=i686
120
+ elif [ " ${arch} " = " aarch64" ] && [ " $( getconf LONG_BIT) " -eq 32 ]; then
121
+ arch=arm
119
122
fi
120
123
121
124
printf ' %s' " ${arch} "
@@ -263,7 +266,7 @@ is_build_available() {
263
266
)
264
267
265
268
if [ " ${good} " != " 1" ]; then
266
- error " ${arch} builds for ${platform} are not yet availble for Lightmon"
269
+ error " ${arch} builds for ${platform} are not yet available for Lightmon"
267
270
printf " \n" >&2
268
271
info " If you would like to see a build for your configuration,"
269
272
info " please create an issue requesting a build for ${MAGENTA}${target} $- ${NO_COLOR} :"
You can’t perform that action at this time.
0 commit comments