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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: alpine-1.20
|
runs-on: debian
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
|
@ -54,7 +54,12 @@ jobs:
|
||||||
|
|
||||||
echo "🔨 Building $BIN"
|
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
|
if [ "$ARCH" = "arm" ]; then
|
||||||
case "$VARIANT" in
|
case "$VARIANT" in
|
||||||
|
@ -70,6 +75,7 @@ jobs:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "📦 Packaging $BIN with required files..."
|
echo "📦 Packaging $BIN with required files..."
|
||||||
|
|
||||||
PKG_DIR="bundle-$OUT"
|
PKG_DIR="bundle-$OUT"
|
||||||
mkdir "$PKG_DIR"
|
mkdir "$PKG_DIR"
|
||||||
cp "$BIN" "$PKG_DIR/"
|
cp "$BIN" "$PKG_DIR/"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue