From e0842bdb04430212ae96e779c7a0e01ad089eef1 Mon Sep 17 00:00:00 2001 From: Yakumo Hokori Date: Mon, 3 Nov 2025 14:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gitea.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gitea.yml b/.github/workflows/gitea.yml index c0b7485..67fef2c 100644 --- a/.github/workflows/gitea.yml +++ b/.github/workflows/gitea.yml @@ -21,9 +21,8 @@ jobs: with: toolchain: stable target: | - x86_64-unknown-linux-gnu # 默认的 Linux 目标 - x86_64-pc-windows-gnu # Windows 交叉编译目标 - + x86_64-unknown-linux-gnu + x86_64-pc-windows-gnu - name: 安装 Windows 交叉编译所需的 MinGW-w64 工具链 (GCC for Windows) run: | sudo apt-get update @@ -40,7 +39,6 @@ jobs: - name: 查找编译后的可执行文件名称 id: get_bin_name run: | - # 假设你的项目名就是二进制文件名。如果不是,请根据实际情况修改。 BIN_NAME=$(grep '^name =' Cargo.toml | head -1 | cut -d '=' -f 2 | tr -d '[:space:]"') echo "Detected binary name: $BIN_NAME" echo "linux_bin=${BIN_NAME}" >> $GITEA_OUTPUT