Skip to content

CI: pre-create DLL stubs before cargo check#2

Merged
OBress merged 1 commit intomainfrom
fix-ci-dll-stubs
May 10, 2026
Merged

CI: pre-create DLL stubs before cargo check#2
OBress merged 1 commit intomainfrom
fix-ci-dll-stubs

Conversation

@OBress
Copy link
Copy Markdown
Owner

@OBress OBress commented May 10, 2026

Summary

  • cargo check in CI was failing on Linux with resource path bundle-resources/sherpa-onnx-c-api.dll doesn't exist.
  • tauri-build's generate_context!() macro validates every bundle.resources source path at compile time on every platform (the field is global, not per-OS), and cargo check runs the build script.
  • release.yml already pre-creates empty DLL stubs for exactly this reason (commit de0b287); ci.yml was never updated to match.
  • This adds the same stub step before cargo check. The stubs are never loaded at runtime — they exist only to satisfy compile-time path validation.

Test plan

  • CI on this PR (Rust check) passes.

🤖 Generated with Claude Code

tauri-build validates bundle.resources globally at compile time on
every platform, and cargo check runs the build script. release.yml
already pre-creates empty .dll stubs for this (commit de0b287); CI
was never updated to match, so cargo check started failing on Linux
with `resource path bundle-resources/sherpa-onnx-c-api.dll doesn't
exist` as soon as a PR touched anything build-related.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@OBress OBress merged commit c0cdcc9 into main May 10, 2026
2 checks passed
@OBress OBress deleted the fix-ci-dll-stubs branch May 10, 2026 19:42
@OBress OBress mentioned this pull request May 10, 2026
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant