Skip to content

Commit

Permalink
Fix wrong macos target in release CI (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
lv37 authored Nov 12, 2024
1 parent 596af17 commit 8f1a06b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
os: ubuntu-20.04
- target: darwin-x86_64
os: macos-latest
vflags: -d cross_compile_macos_x86_64
- target: darwin-arm64
os: macos-latest
vflags: -d cross_compile_macos_arm64
Expand Down
2 changes: 2 additions & 0 deletions build.vsh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ fn (m ReleaseMode) compile_cmd() string {
}
cflags := $if cross_compile_macos_arm64 ? {
'-cflags "-target arm64-apple-darwin"'
} $else $if cross_compile_macos_x86_64 ? {
'-cflags "-target x86_64-apple-darwin"'
} $else $if linux {
if m == .release { '-cflags -static' } else { '' }
} $else {
Expand Down

0 comments on commit 8f1a06b

Please sign in to comment.