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

Add Windows arm64 release binaries #1250

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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/heavy-seals-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"fnm": minor
---

feature: Add Windows arm64 release binaries
8 changes: 7 additions & 1 deletion .ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ set_filename() {
USE_HOMEBREW="true"
echo "Downloading fnm using Homebrew..."
elif [ "$OS" = "Windows" ] ; then
FILENAME="fnm-windows"
case "$(uname -m)" in
aarch* | armv8*)
FILENAME="fnm-windows-arm64"
;;
*)
FILENAME="fnm-windows"
esac
echo "Downloading the latest fnm binary from GitHub..."
else
echo "OS $OS is not supported."
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,25 @@ jobs:
- uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{env.RUST_VERSION}}
targets: x86_64-pc-windows-msvc,aarch64-pc-windows-msvc
- uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v4
- name: Build release binary
- name: Build x64 release binary
run: cargo build --release
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- name: Build arm64 release binary
run: cargo build --release --target aarch64-pc-windows-msvc
env:
RUSTFLAGS: "-C target-feature=+crt-static"
- uses: actions/upload-artifact@v4
with:
name: fnm-windows
path: target/release/fnm.exe
- uses: actions/upload-artifact@v4
with:
name: fnm-windows-arm64
path: target/aarch64-pc-windows-msvc/release/fnm.exe

build_macos_release:
runs-on: macos-latest
Expand Down