Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong macos target in release CI #139

Merged
merged 2 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading