You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Building from a fresh checkout fails (Cargo.toml's mathcat version is a CI-only placeholder); also no Windows ARM64 release artifact #135
Building from a fresh checkout fails (Cargo.toml's mathcat version is a CI-only placeholder); also no Windows ARM64 release artifact
Summary
Two things, found while trying to get libmathcat_py working for a native ARM64 Windows build of NVDA:
1. cargo build on a plain checkout fails.Cargo.toml currently has mathcat = { version = "=0.7.9-alpha.1" }, which isn't published on crates.io (latest is 0.7.8/0.7.8-alpha.1). I initially assumed this was a forgotten version bump, but looking at .github/workflows/automaticRelease.yaml, it's intentional — CI always rewrites this line via sed to a git = "...NSoiffer/MathCAT", tag = "latest" (or matching branch) dependency before building, so the checked-in pin is really just a placeholder that's never built against directly in your release process.
The friction is just that nothing documents this for someone building straight from a checkout without going through the release workflow — cargo build --target aarch64-pc-windows-msvc --release (or any target) fails immediately with a version-resolution error that doesn't hint at the CI step being the actual source of truth.
Possibly worth a one-line comment above the mathcat = {...} lines (something like # CI rewrites this to a git dependency on NSoiffer/MathCAT before building; see .github/workflows/automaticRelease.yaml), or a small local dev script mirroring that sed step, so contributors don't have to find this out by reading the release workflow. Not suggesting any change to the release process itself, which clearly works as intended.
2. No Windows ARM64 release artifact. Separately, the release page only has libmathcat_py-32-3.11-win.zip (x86) and libmathcat_py-64-3.13-win.zip (x64) — no win_aarch64 build. (This relates to nvaccess/nvda#19561, where it was concluded the x64 build works fine when NVDA itself runs under x64 emulation on ARM64 Windows — true today — but it becomes a real gap for a native ARM64 Python NVDA build, which is what I was setting up.)
Once I manually rewrote the version pin to match a real published/git-tag mathcat version (mirroring what CI does), cargo build --target aarch64-pc-windows-msvc --release with the ARM64 Rust toolchain worked without any other changes, and the resulting libmathcat_py.dll is a genuine ARM64 binary that works correctly in a native-ARM64 NVDA build (confirmed via NVDA's log: "MathCAT ... installed", math reading works). So adding a win_aarch64 leg to the release workflow should be straightforward whenever it's convenient — happy to help if useful, but didn't want to touch automaticRelease.yaml myself without understanding your release cadence/preferences for it first.
Investigated and drafted with AI assistance (Claude); I reviewed the technical content and tested the ARM64 build myself before filing this.
Activity