Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

trying to solve windows build issue (11)

matthew-heartful08872ba2a3a0
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 734a316b4..05f6fe02a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -29,6 +29,7 @@ jobs:
with:
profile: minimal
toolchain: stable
+ override: true
- name: Install dependencies
run: |
@@ -95,6 +96,18 @@ jobs:
env:
RUSTFLAGS: ${{ env.RUSTFLAGS }}
+ - name: Install vcpkg
+ uses: lukka/run-vcpkg@v7
+ with:
+ vcpkgGitCommitId: 'your-preferred-commit-id'
+ vcpkgTriplet: 'x64-windows'
+
+ - name: Install ONNX Runtime
+ run: vcpkg install onnxruntime:x64-windows
+
+ - name: Set up MSVC
+ uses: ilammy/msvc-dev-cmd@v1
+
test-macos:
runs-on: macos-latest
steps:
@@ -151,3 +164,12 @@ jobs:
with:
name: cargo-tree-output
path: cargo_tree_output.txt
+
+ test-vcpkg:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Install cargo-vcpkg
+ run: cargo install cargo-vcpkg
+
+ - name: Build with vcpkg integration
+ run: cargo vcpkg build
diff --git a/Cargo.toml b/Cargo.toml
index 98a86aa7e..600402184 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,7 +37,6 @@ criterion = { version = "0.5.1", features = ["async_tokio"] }
vcpkg = "0.2"
[workspace.metadata.vcpkg]
-dependencies = ["onnxruntime"]
git = "https://github.com/microsoft/vcpkg"
rev = "2023.04.15"
dynamic = true
diff --git a/screenpipe-audio/Cargo.toml b/screenpipe-audio/Cargo.toml
index 0f9f99479..96990ad68 100644
--- a/screenpipe-audio/Cargo.toml
+++ b/screenpipe-audio/Cargo.toml
@@ -67,9 +67,6 @@ screenpipe-core = { path = "../screenpipe-core" }
once_cell = "1.17.1"
objc = "0.2.7"
-[target.'cfg(target_os = "windows")'.dependencies]
-vcpkg = { workspace = true }
-
[dev-dependencies]
tempfile = "3.3.0"
infer = "0.15"