Skip to content

Commit

Permalink
ci: add setup bun download url
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Oct 8, 2024
1 parent a8913c4 commit 576bca5
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
- run: |
gh cache delete --all || true
env:
Expand Down Expand Up @@ -125,3 +125,28 @@ jobs:
uses: ./.github/actions/compare-bun-version
with:
bun-version: "1.1.0"

setup-bun-download-url:
runs-on: setup-bun from (${{ matrix.os }}, download url)
continue-on-error: true
needs: [remove-cache]
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Bun
uses: ./
id: setup_bun
with:
bun-download-url: "https://github.com/oven-sh/bun/releases/latest/download/bun-${{runner.os == 'macOS' && 'darwin' || runner.os}}-${{ runner.arch == 'X64' && 'x64' || 'arm64' }}.zip"

- name: Run Bun
id: run_bun
run: |
bun --version

0 comments on commit 576bca5

Please sign in to comment.