修改了错误的注释

This commit is contained in:
Yakumo Hokori
2025-11-03 14:58:03 +08:00
parent 079d883436
commit e0842bdb04

View File

@@ -21,9 +21,8 @@ jobs:
with: with:
toolchain: stable toolchain: stable
target: | target: |
x86_64-unknown-linux-gnu # 默认的 Linux 目标 x86_64-unknown-linux-gnu
x86_64-pc-windows-gnu # Windows 交叉编译目标 x86_64-pc-windows-gnu
- name: 安装 Windows 交叉编译所需的 MinGW-w64 工具链 (GCC for Windows) - name: 安装 Windows 交叉编译所需的 MinGW-w64 工具链 (GCC for Windows)
run: | run: |
sudo apt-get update sudo apt-get update
@@ -40,7 +39,6 @@ jobs:
- name: 查找编译后的可执行文件名称 - name: 查找编译后的可执行文件名称
id: get_bin_name id: get_bin_name
run: | run: |
# 假设你的项目名就是二进制文件名。如果不是,请根据实际情况修改。
BIN_NAME=$(grep '^name =' Cargo.toml | head -1 | cut -d '=' -f 2 | tr -d '[:space:]"') BIN_NAME=$(grep '^name =' Cargo.toml | head -1 | cut -d '=' -f 2 | tr -d '[:space:]"')
echo "Detected binary name: $BIN_NAME" echo "Detected binary name: $BIN_NAME"
echo "linux_bin=${BIN_NAME}" >> $GITEA_OUTPUT echo "linux_bin=${BIN_NAME}" >> $GITEA_OUTPUT