修改了错误的注释
This commit is contained in:
6
.github/workflows/gitea.yml
vendored
6
.github/workflows/gitea.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user