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:
Jozef Steinhübl 2024-10-08 15:30:45 +02:00 committed by GitHub
parent a8913c42f4
commit 8f1bc2eeb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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