Skip to content

Commit

Permalink
Enhance cross-platform build configurations and dependencies
Browse files Browse the repository at this point in the history
- Modify build configurations to improve cross-platform compatibility for Windows and macOS.
- Implement structured release process with enhanced versioning and artifact management.
- Integrate ARM64 support and necessary dependencies for Windows in the `ort` crate.
  • Loading branch information
zhongweili committed Dec 14, 2024
1 parent 4d8b810 commit c56d06e
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ jobs:
build: windows
os: windows-latest
arch: x86_64
- target: aarch64-pc-windows-msvc
build: windows
os: windows-latest
arch: aarch64
# Temporarily annotate the ARM64 build
# - target: aarch64-pc-windows-msvc
# build: windows
# os: windows-latest
# arch: aarch64

runs-on: ${{ matrix.os }}
steps:
Expand Down
51 changes: 48 additions & 3 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,20 @@ chrono = "0.4.38"

[package.metadata.cargo-machete]
ignored = ["serde_json", "serde", "num-traits", "tauri-plugin-http", "tauri-plugin-shell", "tokio"]

[target.'cfg(target_os = "windows")'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
"cuda",
], default-features = false }

[target.'cfg(all(target_os = "windows", target_arch = "x86_64"))'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
"cuda",
], default-features = false }

[target.'cfg(all(target_os = "windows", target_arch = "aarch64"))'.dependencies]
ort = { version = "1.16.3", features = [
"download-binaries",
], default-features = false }

0 comments on commit c56d06e

Please sign in to comment.