Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(ci): install a pinned jq on EX63 without root

oxoxDev7bd1c7e1311a
diff --git a/.github/workflows/ci-lanes.yml b/.github/workflows/ci-lanes.yml
index 1b9bcae79d..a91809834b 100644
--- a/.github/workflows/ci-lanes.yml
+++ b/.github/workflows/ci-lanes.yml
@@ -80,13 +80,24 @@ jobs:
- name: Install jq for release-script tests
if: steps.filter.outputs.scripts == 'true'
+ env:
+ JQ_URL: https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64
+ JQ_SHA256: 5942c9b0934e510ee61eb3e30273f1b3fe2590df93933a93d7c58b81d19c8ff5
run: |
- if command -v jq >/dev/null && python3 -c 'import tomli' 2>/dev/null; then
+ if command -v jq >/dev/null; then
exit 0
fi
- SUDO=$([ "$(id -u)" -eq 0 ] || echo sudo)
- $SUDO apt-get update
- $SUDO apt-get install -y --no-install-recommends jq python3-tomli
+ if [ "$(uname -m)" != "x86_64" ]; then
+ echo "::error::no jq on this runner and no pinned build for $(uname -m)"
+ exit 1
+ fi
+ bin="$RUNNER_TEMP/jq-bin"
+ mkdir -p "$bin"
+ curl -fsSL --retry 3 -o "$bin/jq" "$JQ_URL"
+ echo "$JQ_SHA256 $bin/jq" | sha256sum -c -
+ chmod +x "$bin/jq"
+ "$bin/jq" --version
+ echo "$bin" >> "$GITHUB_PATH"
# One step per lane: `Start lanes` launches every lane in the background
# (they still run in parallel); each `Lane:` step streams its own lane's