Update .forgejo/workflows/release.yaml
Some checks failed
Run Integration Tests / test (push) Failing after 36s
Some checks failed
Run Integration Tests / test (push) Failing after 36s
This commit is contained in:
parent
2ed298a78c
commit
cfce45cfe6
1 changed files with 9 additions and 3 deletions
|
@ -5,7 +5,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: alpine-1.20
|
||||
runs-on: debian
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
|
@ -53,8 +53,13 @@ jobs:
|
|||
[ "$OS" = "windows" ] && BIN="${OUT}.exe"
|
||||
|
||||
echo "🔨 Building $BIN"
|
||||
|
||||
export CGO_ENABLED=1
|
||||
|
||||
# Disable CGO for cross-compiled targets (everything except native linux/amd64)
|
||||
if [ "$TARGET" = "linux/amd64" ]; then
|
||||
export CGO_ENABLED=1
|
||||
else
|
||||
export CGO_ENABLED=0
|
||||
fi
|
||||
|
||||
if [ "$ARCH" = "arm" ]; then
|
||||
case "$VARIANT" in
|
||||
|
@ -70,6 +75,7 @@ jobs:
|
|||
fi
|
||||
|
||||
echo "📦 Packaging $BIN with required files..."
|
||||
|
||||
PKG_DIR="bundle-$OUT"
|
||||
mkdir "$PKG_DIR"
|
||||
cp "$BIN" "$PKG_DIR/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue