关于git action 编译 [vite:css-post] Invalid target 的问题 #150
niuxuefeng87
announced in
Announcements
Replies: 1 comment 2 replies
-
你需要提供更多的信息 比如你github上的项目地址 或者github action的配置文件 这样直接提问是看不出来什么问题的 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
你好 我正在学习tauri
根据官方示例,可以使用git action编译win和ubuntu x86_64 app
现在想编译下 arm64的
看到了nvm项目的GitAction
参考项目中的release.yml
release-for-linux-arm64部分 => Build for Linux 部分
action报错
vite v6.0.3 building for production...
transforming...
✓ 18 modules transformed.
x Build failed in 808ms
error during build:
[vite:css-post] Invalid target "aarch64-unknown-linux-gnu" in "--target=aarch64-unknown-linux-gnu"
at /home/runner/work/tauri-test/tauri-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:737:38
at responseCallbacks. (/home/runner/work/tauri-test/tauri-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:622:9)
at handleIncomingPacket (/home/runner/work/tauri-test/tauri-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:676:31)
at Socket.readFromStdout (/home/runner/work/tauri-test/tauri-test/node_modules/.pnpm/[email protected]/node_modules/esbuild/lib/main.js:600:7)
at Socket.emit (node:events:518:28)
at addChunk (node:internal/streams/readable:561:12)
at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
at Readable.push (node:internal/streams/readable:392:5)
at Pipe.onStreamRead (node:internal/stream_base_commons:191:23)
ELIFECYCLE Command failed with exit code 1.
Error: Process completed with exit code 1.
然后我试了下release中的
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: windows-latest
target: aarch64-pc-windows-msvc
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
- os: ubuntu-22.04
target: x86_64-unknown-linux-gnu
也是报同样的错误
[vite:css-post] Invalid target "xxxxxxx" in "--target=xxxxxxxx"
工程话,我创建的是基础工程
✔ Project name · tauri-test
✔ Identifier · com.tauri-test.app
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, deno, bun)
✔ Choose your package manager · pnpm
✔ Choose your UI template · Vue - (https://vuejs.org/)
✔ Choose your UI flavor · TypeScript
没有写自定义代码或者其他的外部引入
您知道是哪里的问题么,谢谢
Beta Was this translation helpful? Give feedback.
All reactions