Skip to content

Commit 10a20ee

Browse files
fix(ci): add rustfmt/clippy components, fix Windows npm path
Add rustfmt and clippy components to setup-rust-toolchain action (nightly minimal profile omits them). Replace npm --prefix with Task dir directive to avoid forward-slash path resolution bug on Windows GitHub-hosted runners. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e2b8916 commit 10a20ee

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/actions/setup-tauri-build/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ runs:
7474
uses: actions-rust-lang/setup-rust-toolchain@v1
7575
with:
7676
toolchain: ${{ steps.rust-version-unix.outputs.toolchain || steps.rust-version-windows.outputs.toolchain }}
77+
components: rustfmt, clippy
7778
target: ${{ runner.os == 'Windows' && 'x86_64-pc-windows-msvc' || '' }}
7879
cache: false
7980

taskfiles/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,9 @@ tasks:
110110

111111
frontend-build:
112112
desc: "Build frontend assets"
113+
dir: "{{.ROOT_DIR}}/app/frontend"
113114
cmds:
114-
- npm --prefix {{.ROOT_DIR}}/app/frontend run build
115+
- npm run build
115116
sources:
116117
- "{{.ROOT_DIR}}/app/frontend/js/**/*"
117118
- "{{.ROOT_DIR}}/app/frontend/css/**/*"

0 commit comments

Comments
 (0)