ci: install bun from the npm registry (GitHub release assets answer 504 now and then), bun.sh with retries as fallback

This commit is contained in:
CRTkafa 2026-11-08 16:23:15 +07:00
parent 96458bba5c
commit 3a22d7f455
5 changed files with 21 additions and 7 deletions

View file

@ -102,7 +102,7 @@ jobs:
if: ${{ matrix.platform == 'Linux' }}
shell: bash
run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" >/dev/null
bash tools/ci-install-bun.sh
echo "$HOME/.bun/bin" >> "${FORGEJO_PATH:-$GITHUB_PATH}"
- name: Acceptance matrix (Linux)
if: ${{ matrix.platform == 'Linux' }}
@ -371,7 +371,7 @@ jobs:
- uses: actions/checkout@v4
- name: Tools
run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" >/dev/null
bash tools/ci-install-bun.sh
echo "$HOME/.bun/bin" >> "${FORGEJO_PATH:-$GITHUB_PATH}"
- uses: actions/download-artifact@v3
with:
@ -406,7 +406,7 @@ jobs:
# no apt: the installers were scanned with the private terms in their own jobs; this job only records
- name: Tools
run: |
curl -fsSL https://bun.sh/install | bash -s "bun-v${BUN_VERSION}" >/dev/null
bash tools/ci-install-bun.sh
echo "$HOME/.bun/bin" >> "${FORGEJO_PATH:-$GITHUB_PATH}"
[ -n "$FORGEJO_TOKEN" ] || { echo "secret RELEASE_TOKEN is missing (repo Settings > Actions > Secrets)" >&2; exit 1; }
- uses: actions/download-artifact@v3