Skip to content

fix(ci): skip cargo-nextest install for cross-compile-only test jobs - #110

Merged
bug-ops merged 1 commit into
mainfrom
fix/ci-skip-nextest-install-for-cross-jobs
Aug 12, 2026
Merged

fix(ci): skip cargo-nextest install for cross-compile-only test jobs#110
bug-ops merged 1 commit into
mainfrom
fix/ci-skip-nextest-install-for-cross-jobs

Conversation

@bug-ops

@bug-ops bug-ops commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • The Test (windows-latest / aarch64-pc-windows-msvc) job (https://github.com/bug-ops/deps-lsp/actions/runs/31634514455/job/94246948361) fails deterministically: cargo-nextest has no precompiled binary for aarch64-pc-windows-msvc, so moonrepo/setup-rust@v1's bins: cargo-nextest falls back to cargo install cargo-nextest without --locked, which nextest's build script rejects by design (Nextest does not support being installed without --locked)
  • That job is cross-compile-only (matrix.cross: true) and never runs cargo nextest run in the first place (if: ${{ !matrix.cross }} gates the test step), so it doesn't need nextest installed at all
  • Fix: only request the cargo-nextest bin install when !matrix.cross, mirroring the existing matrix.target && ... || '' conditional idiom already used elsewhere in this workflow

Test plan

  • fy lint .github/workflows/ci.yml — 0 errors (pre-existing style-only notices unrelated to this change)
  • CI on this PR passes, in particular Test (windows-latest / aarch64-pc-windows-msvc)

The aarch64-pc-windows-msvc cross-compile job has no precompiled
cargo-nextest binary available, so moonrepo/setup-rust falls back to
building it from source via 'cargo install cargo-nextest' without
--locked, which nextest's install guard deliberately rejects. That job
never runs nextest anyway (cross-compile jobs only run 'cargo build'),
so skip the bin install entirely when matrix.cross is set.
@github-actions github-actions Bot added needs-review Needs review ci CI/CD workflows size: XS <10 lines changed labels Aug 12, 2026
@bug-ops
bug-ops enabled auto-merge (squash) August 12, 2026 20:31
@bug-ops
bug-ops merged commit 2e2ea9c into main Aug 12, 2026
19 checks passed
@bug-ops
bug-ops deleted the fix/ci-skip-nextest-install-for-cross-jobs branch August 12, 2026 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci CI/CD workflows needs-review Needs review size: XS <10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant