Update .forgejo/workflows/release.yaml
Some checks failed
Run Integration Tests / test (push) Has been cancelled

This commit is contained in:
Internet Addict 2025-06-01 08:39:16 +00:00
parent 6e30691dad
commit 86a1cb019a

View file

@ -54,8 +54,8 @@ jobs:
echo "🔨 Building $BIN"
# Disable CGO for cross-compiled targets (everything except native linux/amd64)
if [ "$TARGET" = "linux/amd64" ]; then
# Set CGO only for native linux/amd64 build
if [ "$OS" = "linux" ] && [ "$ARCH" = "amd64" ]; then
export CGO_ENABLED=1
else
export CGO_ENABLED=0
@ -75,7 +75,6 @@ jobs:
fi
echo "📦 Packaging $BIN with required files..."
PKG_DIR="bundle-$OUT"
mkdir "$PKG_DIR"
cp "$BIN" "$PKG_DIR/"