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

try to fix #1296 by building a universal macos executable #1310

Merged
merged 8 commits into from
Nov 13, 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
5 changes: 5 additions & 0 deletions .changeset/curvy-onions-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fnm": patch
---

make github releases of macos to be a universal macos executable (both m1 and x64) as github changed the workers to be m1
8 changes: 7 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,16 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
targets: x86_64-apple-darwin,aarch64-apple-darwin
- uses: Swatinem/rust-cache@v2
- uses: mlugg/setup-zig@v1
- run: cargo install --locked cargo-zigbuild
- uses: actions/checkout@v4
- name: Build release binary
run: cargo build --release
run: |
cargo zigbuild --release --target=universal2-apple-darwin
mkdir -p target/release
cp target/universal2-apple-darwin/release/fnm target/release/fnm
env:
LZMA_API_STATIC: "true"
- name: Strip binary from debug symbols
Expand Down
Loading