fix(ci): build Windows binary natively to fix segfault (#1019)
Bun cross-compilation from Linux to Windows produces binaries that crash with 'Segmentation fault at address 0xFFFFFFFFFFFFFFFF'. Root cause: oven-sh/bun#18416 Solution: - Use windows-latest runner for Windows platform in publish-platform.yml - Set shell: bash for consistent behavior across runners This is a simpler fix than PR #938 which modified publish.yml (wrong workflow). The platform binaries are built and published by publish-platform.yml. Fixes #873 Fixes #844 Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
parent
f8155e7d45
commit
1a901a50ac
7
.github/workflows/publish-platform.yml
vendored
7
.github/workflows/publish-platform.yml
vendored
@ -29,7 +29,12 @@ permissions:
|
||||
|
||||
jobs:
|
||||
publish-platform:
|
||||
runs-on: ubuntu-latest
|
||||
# Use windows-latest for Windows to avoid cross-compilation segfault (oven-sh/bun#18416)
|
||||
# Fixes: #873, #844
|
||||
runs-on: ${{ matrix.platform == 'windows-x64' && 'windows-latest' || 'ubuntu-latest' }}
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
strategy:
|
||||
fail-fast: false
|
||||
max-parallel: 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user