File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 env :
6565 BUN_VERSION : " 1.3.14"
6666 BUN_LINUX_X64_SHA256 : " 951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f"
67- run : |
68- archive="$RUNNER_TEMP/bun-linux-x64.zip"
69- install_dir="$RUNNER_TEMP/bun-runtime"
70- curl --fail --location --retry 3 \
71- --output "$archive" \
72- "https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION}/bun-linux-x64.zip"
73- printf '%s %s\n' "$BUN_LINUX_X64_SHA256" "$archive" | sha256sum --check --strict
74- unzip -q "$archive" -d "$install_dir"
75- printf '%s\n' "$install_dir/bun-linux-x64" >> "$GITHUB_PATH"
76- "$install_dir/bun-linux-x64/bun" --version
67+ run : ./scripts/install-bun.sh
7768 - name : Install dependencies
7869 run : opam install . --deps-only --with-test --with-doc --yes
7970 - name : Install tree-sitter CLI (for res-to-affine walker tests)
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -euo pipefail
3+
4+ # nosonar
5+ # Intentional direct download because setup-bun is blocked by repo selected-action policy.
6+
7+ BUN_VERSION=" ${BUN_VERSION:- 1.3.14} "
8+ BUN_LINUX_X64_SHA256=" ${BUN_LINUX_X64_SHA256:- 951ee2aee855f08595aeec6225226a298d3fea83a3dcd6465c09cbccdf7e848f} "
9+
10+ archive=" $RUNNER_TEMP /bun-linux-x64.zip"
11+ install_dir=" $RUNNER_TEMP /bun-runtime"
12+ curl --fail --location --retry 3 \
13+ --output " $archive " \
14+ " https://github.com/oven-sh/bun/releases/download/bun-v${BUN_VERSION} /bun-linux-x64.zip"
15+ printf " %s %s\n" " $BUN_LINUX_X64_SHA256 " " $archive " | sha256sum --check --strict
16+ unzip -q " $archive " -d " $install_dir "
17+ printf " %s\n" " $install_dir /bun-linux-x64" >> " $GITHUB_PATH "
18+ " $install_dir /bun-linux-x64/bun" --version
You can’t perform that action at this time.
0 commit comments