mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-02-23 02:30:26 +08:00
ci: add setup bun download url (#105)
* ci: add setup bun download url * ci: change runs-on * ci: aarch64, not arm64
This commit is contained in:
parent
a8913c42f4
commit
8f1bc2eeb3
28
.github/workflows/test.yml
vendored
28
.github/workflows/test.yml
vendored
@ -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 \
|
&& 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 update \
|
||||||
&& sudo apt install gh -y
|
&& sudo apt install gh -y
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
gh cache delete --all || true
|
gh cache delete --all || true
|
||||||
env:
|
env:
|
||||||
@ -125,3 +125,29 @@ jobs:
|
|||||||
uses: ./.github/actions/compare-bun-version
|
uses: ./.github/actions/compare-bun-version
|
||||||
with:
|
with:
|
||||||
bun-version: "1.1.0"
|
bun-version: "1.1.0"
|
||||||
|
|
||||||
|
setup-bun-download-url:
|
||||||
|
name: setup-bun from (${{ matrix.os }}, download url)
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
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' || 'aarch64' }}.zip"
|
||||||
|
|
||||||
|
- name: Run Bun
|
||||||
|
id: run_bun
|
||||||
|
run: |
|
||||||
|
bun --version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user