Install jj in CI

This commit is contained in:
Julius Marminge committed 2026-05-02 16:18:42 -07:00
1 parent 96bd5cedb4
commit 8d0ef79c6f
3 files changed
+55

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
name: Setup Jujutsu
description: Install the jj CLI from the official jj-vcs release artifacts.
inputs:
version:
description: Jujutsu release tag to install.
required: false
default: v0.40.0
runs:
using: composite
steps:
- name: Install jj
shell: bash
env:
JJ_VERSION: ${{ inputs.version }}
run: |
set -euo pipefail
case "${RUNNER_OS}-${RUNNER_ARCH}" in
Linux-X64)
asset="jj-${JJ_VERSION}-x86_64-unknown-linux-musl.tar.gz"
;;
Linux-ARM64)
asset="jj-${JJ_VERSION}-aarch64-unknown-linux-musl.tar.gz"
;;
macOS-X64)
asset="jj-${JJ_VERSION}-x86_64-apple-darwin.tar.gz"
;;
macOS-ARM64)
asset="jj-${JJ_VERSION}-aarch64-apple-darwin.tar.gz"
;;
*)
echo "Unsupported runner for jj install: ${RUNNER_OS}-${RUNNER_ARCH}" >&2
exit 1
;;
esac
install_dir="${RUNNER_TEMP}/jj-${JJ_VERSION}"
mkdir -p "$install_dir"
curl -fsSL \
"https://github.com/jj-vcs/jj/releases/download/${JJ_VERSION}/${asset}" \
-o "${RUNNER_TEMP}/${asset}"
tar -xzf "${RUNNER_TEMP}/${asset}" -C "$install_dir"
chmod +x "${install_dir}/jj"
echo "$install_dir" >> "$GITHUB_PATH"
"${install_dir}/jj" --version
+3
View File
@@ -25,6 +25,9 @@ jobs:
with:
node-version-file: package.json
- name: Setup Jujutsu
uses: ./.github/actions/setup-jj
- name: Cache Bun and Turbo
uses: actions/cache@v5
with:
+3
View File
@@ -95,6 +95,9 @@ jobs:
with:
node-version-file: package.json
- name: Setup Jujutsu
uses: ./.github/actions/setup-jj
- name: Install dependencies
run: bun install --frozen-lockfile