Skip to content

Commit 181384a

Browse files
ochafikclaude
andcommitted
ci: restore setup-bun action for build jobs
- Add setup-bun action to build and test-git-install jobs - Disable Windows ARM64 (Bun doesn't support this platform) - Add bun installation to WSL build 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 69b8eba commit 181384a

File tree

1 file changed

+21
-6
lines changed

1 file changed

+21
-6
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
name: Linux ARM64
2222
- os: windows-latest
2323
name: Windows x64
24-
- os: windows-11-arm
25-
name: Windows ARM64
24+
# Windows ARM64 disabled: Bun doesn't support this platform yet
25+
# - os: windows-11-arm
26+
# name: Windows ARM64
2627
- os: macos-latest
2728
name: macOS ARM64
2829

@@ -36,6 +37,10 @@ jobs:
3637
shell: bash
3738
run: '! grep -E "\"resolved\": \"https?://" package-lock.json | grep -v registry.npmjs.org'
3839

40+
- uses: oven-sh/setup-bun@v2
41+
with:
42+
bun-version: latest
43+
3944
- uses: actions/setup-node@v4
4045
with:
4146
node-version: "20"
@@ -97,16 +102,21 @@ jobs:
97102
with:
98103
distribution: Ubuntu-24.04
99104

100-
- name: Install Node.js in WSL
105+
- name: Install Node.js and Bun in WSL
101106
shell: wsl-bash {0}
102107
run: |
103108
sudo apt-get update
104109
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
105-
sudo apt-get install -y nodejs
110+
sudo apt-get install -y nodejs unzip
111+
curl -fsSL https://bun.sh/install | bash
112+
echo 'export BUN_INSTALL="$HOME/.bun"' >> ~/.bashrc
113+
echo 'export PATH="$BUN_INSTALL/bin:$PATH"' >> ~/.bashrc
106114
107115
- name: Build and test in WSL
108116
shell: wsl-bash {0}
109117
run: |
118+
export BUN_INSTALL="$HOME/.bun"
119+
export PATH="$BUN_INSTALL/bin:$PATH"
110120
npm install
111121
npm run build
112122
npm run examples:build
@@ -125,15 +135,20 @@ jobs:
125135
name: Linux ARM64
126136
- os: windows-latest
127137
name: Windows x64
128-
- os: windows-11-arm
129-
name: Windows ARM64
138+
# Windows ARM64 disabled: Bun doesn't support this platform yet
139+
# - os: windows-11-arm
140+
# name: Windows ARM64
130141
- os: macos-latest
131142
name: macOS ARM64
132143

133144
name: Test git install (${{ matrix.name }})
134145
runs-on: ${{ matrix.os }}
135146

136147
steps:
148+
- uses: oven-sh/setup-bun@v2
149+
with:
150+
bun-version: latest
151+
137152
- uses: actions/setup-node@v4
138153
with:
139154
node-version: "20"

0 commit comments

Comments
 (0)