Skip to content

Commit 32066fc

Browse files
committed
fix: use macOS runner for release workflow to support CGO cross-compilation
Change release workflow to run on macos-latest instead of ubuntu-latest. This fixes the CGO cross-compilation error when building darwin_amd64 targets, since Linux cannot cross-compile CGO to macOS (SQLite requires CGO). macOS can cross-compile CGO to Linux/Windows, making it the better choice for building all platforms.
1 parent 693fb46 commit 32066fc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ permissions:
1010

1111
jobs:
1212
release:
13-
runs-on: ubuntu-latest
13+
# Use macOS runner because it can cross-compile CGO to Linux/Windows,
14+
# but Linux cannot cross-compile CGO to macOS (SQLite requires CGO)
15+
runs-on: macos-latest
1416
steps:
1517
- name: Checkout
1618
uses: actions/checkout@v6

0 commit comments

Comments
 (0)