From 61e777749728f2c8fec89a7533c2d5415dcd3f77 Mon Sep 17 00:00:00 2001 From: Dennis Ameling Date: Thu, 12 Sep 2024 12:44:53 +0200 Subject: [PATCH 1/3] Add Windows arm64 release binaries --- .github/workflows/rust.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 98ecc430a..d825e85e8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 From cd5064f4e24d9ac25432b6e7954218e705591c4e Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Sun, 6 Oct 2024 09:32:21 +0300 Subject: [PATCH 2/3] add changeset --- .changeset/heavy-seals-stare.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/heavy-seals-stare.md diff --git a/.changeset/heavy-seals-stare.md b/.changeset/heavy-seals-stare.md new file mode 100644 index 000000000..368576f9c --- /dev/null +++ b/.changeset/heavy-seals-stare.md @@ -0,0 +1,5 @@ +--- +"fnm": minor +--- + +feature: Add Windows arm64 release binaries From 07b9e43ec962d08e94476d63ebed3f5a7827175c Mon Sep 17 00:00:00 2001 From: Dennis Ameling Date: Sat, 9 Nov 2024 14:22:52 +0100 Subject: [PATCH 3/3] Update install.sh --- .ci/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.ci/install.sh b/.ci/install.sh index 81c2f401b..3fa192d89 100755 --- a/.ci/install.sh +++ b/.ci/install.sh @@ -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."