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