From 98c0e6f5423a9c19b97c8f38be6fef747a0d29e7 Mon Sep 17 00:00:00 2001 From: indigo Date: Sun, 5 Apr 2026 15:31:48 +0800 Subject: [PATCH 1/2] Add Windows ARM64 (aarch64-pc-windows-msvc) support The install.ps1 script only handled x64 architecture, causing ARM64 Windows users to hit "Unsupported architecture: Arm64". Adds the ARM64 target to both the install script and the release build matrix. Fixes #5 Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/release.yml | 2 ++ install.ps1 | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0981561..5bd8ba7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,8 @@ jobs: os: macos-latest - target: x86_64-pc-windows-msvc os: windows-latest + - target: aarch64-pc-windows-msvc + os: windows-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 diff --git a/install.ps1 b/install.ps1 index b31403b..2e27046 100644 --- a/install.ps1 +++ b/install.ps1 @@ -9,6 +9,7 @@ $InstallDir = "$env:LOCALAPPDATA\cx\bin" $Arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture switch ($Arch) { 'X64' { $Target = "x86_64-pc-windows-msvc" } + 'Arm64' { $Target = "aarch64-pc-windows-msvc" } default { Write-Error "Unsupported architecture: $Arch"; exit 1 } } From 66ec0a5f7bb964c792fa64849018df4c87a1f05e Mon Sep 17 00:00:00 2001 From: indigo Date: Sun, 5 Apr 2026 15:35:50 +0800 Subject: [PATCH 2/2] Add swift and dart to CI grammar install step These languages were added after the CI grammar list was set up, causing test failures on cache misses (e.g., new branches). Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ef739fc..106cfa0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - name: Install grammars - run: cargo run -- lang add rust typescript python go c cpp java ruby lua zig bash solidity elixir + run: cargo run -- lang add rust typescript python go c cpp java ruby lua zig bash solidity elixir swift dart - run: cargo test clippy: