Skip to content

Commit b06f5ca

Browse files
committed
fix(ci): ORT_LIB_LOCATION 用 github.workspace 绝对路径(build script cwd 为 OUT_DIR)
1 parent 9b6471f commit b06f5ca

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/pr-check.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ jobs:
108108
- name: Test
109109
# ORT_PREFER_DYNAMIC_LINK=1:与本地一致走动态链接,规避 static MT 与项目 MD 运行时的 LNK2038 冲突
110110
env:
111-
ORT_LIB_LOCATION: ort/ci
111+
ORT_LIB_LOCATION: ${{ github.workspace }}/app/src-tauri/ort/ci
112112
ORT_PREFER_DYNAMIC_LINK: "1"
113113
run: cd app/src-tauri && cargo test
114114
- name: Lint (clippy)
115115
env:
116-
ORT_LIB_LOCATION: ort/ci
116+
ORT_LIB_LOCATION: ${{ github.workspace }}/app/src-tauri/ort/ci
117117
ORT_PREFER_DYNAMIC_LINK: "1"
118118
run: cd app/src-tauri && cargo clippy -- -D warnings
119119

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Test
5656
# ORT_PREFER_DYNAMIC_LINK=1:与本地一致走动态链接,规避 static MT 与项目 MD 运行时的 LNK2038 冲突
5757
env:
58-
ORT_LIB_LOCATION: ort/ci
58+
ORT_LIB_LOCATION: ${{ github.workspace }}/app/src-tauri/ort/ci
5959
ORT_PREFER_DYNAMIC_LINK: "1"
6060
run: cd app/src-tauri && cargo test
6161

@@ -100,7 +100,7 @@ jobs:
100100
# oar-ocr 未启用 ort-sys download-binaries(本地靠 ORT_LIB_LOCATION 链接),
101101
# CI 手动提供 ORT 库并复用同一机制;动态链接规避 LNK2038(同本地 config)
102102
env:
103-
ORT_LIB_LOCATION: ort/ci
103+
ORT_LIB_LOCATION: ${{ github.workspace }}/app/src-tauri/ort/ci
104104
ORT_PREFER_DYNAMIC_LINK: "1"
105105
- uses: actions/upload-artifact@v4
106106
with:

0 commit comments

Comments
 (0)