From 96f8e244d95d9ac142839f30ccc577723f1ff031 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 10 Sep 2026 20:35:58 +0000 Subject: [PATCH] Set CGO_ENABLED=0 in CI and release workflows for portable binaries Co-authored-by: Xiwen Cheng --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4aad2b1..ffda226 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,9 @@ name: Continuous Integration +env: + # Build a statically-linked binary so it runs on any distro (fully portable) + CGO_ENABLED: 0 + on: push: branches: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8dd6280..f07669d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,10 @@ name: Release permissions: contents: write +env: + # Build statically-linked binaries so they run on any distro (fully portable) + CGO_ENABLED: 0 + on: release: types: [created]