Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion scripts/fetch-plannotator-tui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ fi
case "$(uname -s)/$(uname -m)" in
Darwin/arm64) target=aarch64-apple-darwin ;;
Darwin/x86_64) target=x86_64-apple-darwin ;;
Linux/x86_64) target=x86_64-unknown-linux-gnu ;;
Linux/x86_64)
# Alpine and other musl systems can't run the glibc build; the static musl build runs there.
if [ -e /lib/ld-musl-x86_64.so.1 ]; then target=x86_64-unknown-linux-musl
else target=x86_64-unknown-linux-gnu; fi ;;
Linux/aarch64|Linux/arm64) target=aarch64-unknown-linux-gnu ;;
*) echo "warning: no plannotator-tui build for $(uname -s)/$(uname -m); the review pane is unavailable" >&2; exit 0 ;;
esac
Expand Down
2 changes: 1 addition & 1 deletion scripts/test-fetch-plannotator-tui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ curl_log="$test_root/curl.log"
sha256() { if command -v sha256sum >/dev/null 2>&1; then sha256sum "$1"; else shasum -a 256 "$1"; fi | awk '{print $1}'; }
publish() {
: > "$release_root/SHA256SUMS"
for target in aarch64-apple-darwin x86_64-apple-darwin x86_64-unknown-linux-gnu aarch64-unknown-linux-gnu; do
for target in aarch64-apple-darwin x86_64-apple-darwin x86_64-unknown-linux-gnu x86_64-unknown-linux-musl aarch64-unknown-linux-gnu; do
cp "$1" "$release_root/plannotator-tui-$target"
printf '%s %s\n' "$(sha256 "$1")" "plannotator-tui-$target" >> "$release_root/SHA256SUMS"
done
Expand Down
Loading