Skip to content

Commit fa60ac9

Browse files
committed
fix Windows build: disable tokenizers esaxx_fast feature to avoid MSVC CRT static/dynamic mismatch with ort_sys
1 parent a8b589a commit fa60ac9

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,8 @@ jobs:
5858
5959
- name: Install NSIS (Windows)
6060
if: matrix.os == 'windows-latest'
61-
shell: bash
62-
run: |
63-
choco install nsis -y --no-progress 2>&1
64-
echo "C:/Program Files (x86)/NSIS" >> $GITHUB_PATH
65-
which makensis || echo "makensis NOT FOUND"
66-
ls -la "/c/Program Files (x86)/NSIS/" 2>&1 || echo "NSIS dir not found"
61+
shell: pwsh
62+
run: choco install nsis -y --no-progress
6763

6864
- name: Cache cargo
6965
uses: actions/cache@v4
@@ -76,13 +72,12 @@ jobs:
7672
~/.cargo/git
7773
key: ${{ runner.os }}-cargo-${{ hashFiles('src-tauri/Cargo.lock') }}
7874

79-
- name: Tauri bundle
75+
- name: Build
76+
shell: bash
77+
run: npm run tauri build -- --bundles ${{ matrix.bundle }}
8078
env:
81-
CRT_STATIC: "false"
8279
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
8380
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
84-
shell: bash
85-
run: npm run tauri build -- --bundles ${{ matrix.bundle }}
8681

8782
- name: Upload artifacts
8883
uses: actions/upload-artifact@v4

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ parking_lot = "0.12"
3333
anyhow = "1"
3434
dirs = "5"
3535
ort = "2.0.0-rc.12"
36-
tokenizers = "0.23.1"
36+
tokenizers = { version = "0.23.1", default-features = false, features = ["onig"] }
3737
ndarray = "0.16"

0 commit comments

Comments
 (0)