Skip to content

Commit 8f1bc2e

Browse files
authored
ci: add setup bun download url (#105)
* ci: add setup bun download url * ci: change runs-on * ci: aarch64, not arm64
1 parent a8913c4 commit 8f1bc2e

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/test.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
&& 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 \
2828
&& sudo apt update \
2929
&& sudo apt install gh -y
30-
30+
3131
- run: |
3232
gh cache delete --all || true
3333
env:
@@ -125,3 +125,29 @@ jobs:
125125
uses: ./.github/actions/compare-bun-version
126126
with:
127127
bun-version: "1.1.0"
128+
129+
setup-bun-download-url:
130+
name: setup-bun from (${{ matrix.os }}, download url)
131+
runs-on: ${{ matrix.os }}
132+
continue-on-error: true
133+
needs: [remove-cache]
134+
strategy:
135+
matrix:
136+
os:
137+
- ubuntu-latest
138+
- macos-latest
139+
- windows-latest
140+
steps:
141+
- name: Checkout
142+
uses: actions/checkout@v4
143+
144+
- name: Setup Bun
145+
uses: ./
146+
id: setup_bun
147+
with:
148+
bun-download-url: "https://github.com/oven-sh/bun/releases/latest/download/bun-${{runner.os == 'macOS' && 'darwin' || runner.os}}-${{ runner.arch == 'X64' && 'x64' || 'aarch64' }}.zip"
149+
150+
- name: Run Bun
151+
id: run_bun
152+
run: |
153+
bun --version

0 commit comments

Comments
 (0)