fix: resolve GitHub Actions build failures and optimize cross-compilation

- Remove invalid github-token parameter from arduino/setup-protoc action
- Fix cross-compilation RUSTFLAGS issue by conditionally setting target-cpu=native
- Update workflow tag triggers from v* to * for non-v prefixed tags
- Optimize Zig and cargo-zigbuild installation using official actions

This resolves build failures in aarch64-unknown-linux-musl target where
zig was receiving invalid x86_64 CPU flags during cross-compilation.
This commit is contained in:
overtrue
2025-07-08 20:21:11 +08:00
parent 055a99ba25
commit 49f480d346
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -72,7 +72,6 @@ runs:
uses: arduino/setup-protoc@v3
with:
version: "31.1"
github-token: ${{ inputs.github-token }}
- name: Install flatc
uses: Nugine/setup-flatc@v1