Skip to content

Commit 0d3dfa7

Browse files
author
Avijit Mandal
committed
fix: replace deprecated macos-13 runner with cross-compilation
Use macos-latest with bun --target flag to cross-compile for darwin-x64 instead of relying on the deprecated macos-13 runner.
1 parent ac4005a commit 0d3dfa7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,16 @@ jobs:
1515
include:
1616
- os: macos-latest
1717
target: darwin-arm64
18-
- os: macos-13
18+
bun_target: bun-darwin-arm64
19+
- os: macos-latest
1920
target: darwin-x64
21+
bun_target: bun-darwin-x64
2022
- os: ubuntu-latest
2123
target: linux-x64
24+
bun_target: bun-linux-x64
2225
- os: ubuntu-24.04-arm
2326
target: linux-arm64
27+
bun_target: bun-linux-arm64
2428

2529
runs-on: ${{ matrix.os }}
2630

@@ -34,7 +38,7 @@ jobs:
3438
- run: bun install
3539

3640
- name: Build binary
37-
run: bun build --compile src/index.ts --outfile ws-${{ matrix.target }}
41+
run: bun build --compile --target=${{ matrix.bun_target }} src/index.ts --outfile ws-${{ matrix.target }}
3842

3943
- name: Upload artifact
4044
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)