22 lines
816 B
YAML
22 lines
816 B
YAML
name: better-setup-just
|
|
description: Install a pinned just binary statically from its GitHub release asset (no GitHub API probe, no token — Forgejo/act runner safe)
|
|
inputs:
|
|
just-version:
|
|
description: Exact just version to install (x.y.z).
|
|
default: "1.59.0"
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
v="${{ inputs.just-version }}"
|
|
case "$(uname -m)" in
|
|
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}-${target}.tar.gz" \
|
|
| tar -xz -C /usr/local/bin just
|
|
just --version
|