编辑文件 my-first-workflow.yaml

This commit is contained in:
xinian
2026-01-28 13:55:44 +08:00
committed by cnb
parent 76651eb4b8
commit 1025eba80e

View File

@@ -83,15 +83,15 @@ steps:
-trimpath \
-buildvcs=false \
-ldflags "-s -w -buildid= -extldflags '-static'" \
-o ./build/${BIN_NAME} \
-o ./build/$BIN_NAME \
./logic
- |
if [ ! -f ./build/${BIN_NAME} ]; then
echo "❌ 编译失败:产物${BIN_NAME}不存在"
if [ ! -f ./build/$BIN_NAME ]; then
echo "❌ 编译失败:产物$BIN_NAME不存在"
exit 1
fi
- ls -lh ./build/
- echo "产物名称:${BIN_NAME}"
- echo "产物名称:$BIN_NAME"
- echo "✅ Logic服务编译完成"