aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ashcon Partovi <ashcon@partovi.net> 2023-04-28 10:13:36 -0700
committerGravatar Ashcon Partovi <ashcon@partovi.net> 2023-04-28 10:13:36 -0700
commitaf02b75f7939981bf7330df435e0e1751c7b0958 (patch)
treec971c41a12c1127157849545630e98249164f849
parenta06e90eec3e347e0700f3296a215bbc08a243ac6 (diff)
downloadbun-af02b75f7939981bf7330df435e0e1751c7b0958.tar.gz
bun-af02b75f7939981bf7330df435e0e1751c7b0958.tar.zst
bun-af02b75f7939981bf7330df435e0e1751c7b0958.zip
Use setup-bun instead
-rw-r--r--.github/workflows/bun-test.yml27
1 files changed, 15 insertions, 12 deletions
diff --git a/.github/workflows/bun-test.yml b/.github/workflows/bun-test.yml
index e78ef565a..ccedef820 100644
--- a/.github/workflows/bun-test.yml
+++ b/.github/workflows/bun-test.yml
@@ -27,14 +27,18 @@ jobs:
fail-fast: false
matrix:
include:
- - tag: linux-x64
- os: ubuntu-latest
- - tag: linux-x64-baseline
- os: ubuntu-latest
- - tag: darwin-x64
- os: macos-latest
- - tag: darwin-x64-baseline
- os: macos-latest
+ - os: ubuntu-latest
+ tag: linux-x64
+ url: linux/x64?avx2=true
+ - os: ubuntu-latest
+ tag: linux-x64-baseline
+ url: linux/x64?baseline=true
+ - os: macos-latest
+ tag: darwin-x64
+ url: darwin/x64?avx2=true
+ - os: macos-latest
+ tag: darwin-x64-baseline
+ url: darwin/x64?baseline=true
steps:
- id: checkout
name: Checkout
@@ -43,13 +47,12 @@ jobs:
submodules: false
- id: setup
name: Setup
- run: |
- npm install @oven/bun-${{ matrix.tag }}@${{ github.event.inputs.version }}
- chmod +x node_modules/@oven/bun-${{ matrix.tag }}/bin/bun
+ uses: oven-sh/setup-bun@v1
+ with:
+ bun-download-url: https://bun.sh/download/${{ github.event.inputs.version }}/${{ matrix.url }}
- id: test
name: Test
run: |
- export PATH="${PATH}:node_modules/@oven/bun-${{ matrix.tag }}/bin"
bun install
bun install --cwd test
bun x ts-node --esm scripts/bun-test.ts ${{ github.event.inputs.path }} --isolated --timeout=${{ github.event.inputs.timeout }}