Skip to content

Commit 0f93c15

Browse files
committed
fix(ci): lint-test 补 models 空目录占位(bundle.resources glob)
1 parent 4f88196 commit 0f93c15

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ jobs:
8989
uses: Swatinem/rust-cache@v2
9090
with:
9191
workspaces: app/src-tauri
92+
# models/ 不入库(AGENTS.md 铁律),build.rs 的 bundle.resources glob 需要空目录占位
93+
- name: Prepare models placeholder
94+
shell: bash
95+
run: mkdir -p app/src-tauri/models
9296
- name: Test
9397
run: cd app/src-tauri && cargo test
9498
- name: Lint (clippy)

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
uses: Swatinem/rust-cache@v2
3636
with:
3737
workspaces: app/src-tauri
38+
# models/ 不入库(AGENTS.md 铁律),build.rs 的 bundle.resources glob 需要空目录占位
39+
- name: Prepare models placeholder
40+
shell: bash
41+
run: mkdir -p app/src-tauri/models
3842
- name: Test
3943
run: cd app/src-tauri && cargo test
4044

0 commit comments

Comments
 (0)