Skip to content

Commit

Permalink
make fnm-macos.zip a universal macos executable (#1310)
Browse files Browse the repository at this point in the history
GitHub runners changed from Intel-based hardware to M1, which is good, but also a breaking change in the installation script. So now we create a (fatter) executable that can run on both M1 and x64. We might have fnm-macos-arm.zip later on, but homebrew is probably a better choice!
  • Loading branch information
Schniz authored Nov 13, 2024
1 parent 65f7a22 commit 9273981
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit 9273981

Please sign in to comment.