fix: just release assets are full target triples (x86_64-unknown-linux-musl), musl static — bare arch names 404
This commit is contained in:
+3
-3
@@ -12,10 +12,10 @@ runs:
|
||||
set -euo pipefail
|
||||
v="${{ inputs.just-version }}"
|
||||
case "$(uname -m)" in
|
||||
x86_64|amd64) arch=x86_64 ;;
|
||||
aarch64|arm64) arch=aarch64 ;;
|
||||
x86_64|amd64) target=x86_64-unknown-linux-musl ;;
|
||||
aarch64|arm64) target=aarch64-unknown-linux-musl ;;
|
||||
*) echo "better-setup-just: unsupported arch $(uname -m)" >&2; exit 1 ;;
|
||||
esac
|
||||
curl -fsSL "https://github.com/casey/just/releases/download/${v}/just-${v}-${arch}.tar.gz" \
|
||||
curl -fsSL "https://github.com/casey/just/releases/download/${v}/just-${v}-${target}.tar.gz" \
|
||||
| tar -xz -C /usr/local/bin just
|
||||
just --version
|
||||
|
||||
Reference in New Issue
Block a user