Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,22 @@ jobs:
working-directory: src-tauri
run: cargo fmt -- --check

# tauri-build's `generate_context!()` macro validates every
# `bundle.resources` source path at COMPILE TIME on every
# platform (the resources field is global, not per-OS), and
# cargo check runs the build script. The real DLLs are only
# produced by sherpa-onnx-sys's build script on Windows
# release builds — on Linux CI they never exist. Pre-create
# empty stubs so the validation passes; they're never loaded
# at runtime. Mirrors the same step in release.yml.
- name: Pre-create DLL stubs for tauri-build validation
run: |
mkdir -p src-tauri/bundle-resources
touch src-tauri/bundle-resources/sherpa-onnx-c-api.dll
touch src-tauri/bundle-resources/sherpa-onnx-cxx-api.dll
touch src-tauri/bundle-resources/onnxruntime.dll
touch src-tauri/bundle-resources/onnxruntime_providers_shared.dll

- name: cargo check
working-directory: src-tauri
run: cargo check --all-targets
Expand Down
Loading