From 1c9bfdb3a8a0d32b5243b2d2fa314c395b747c83 Mon Sep 17 00:00:00 2001 From: Andriy Oblivantsev Date: Sat, 2 May 2026 22:09:51 +0100 Subject: [PATCH] build(release): UPX Linux envc binaries and trim link metadata Use GoReleaser UPX (linux only, best+lzma), install upx-ucl in the tag release workflow, and add -buildvcs=false with empty -buildid=. Stop Dependabot auto bump PRs via open-pull-requests-limit 0. Remove stray LibreOffice lock file under docs. Co-authored-by: Cursor --- .github/dependabot.yml | 4 ++-- .github/workflows/release.yml | 6 ++++++ .goreleaser.yml | 12 +++++++++++- docs/articles/.~lock.motivation.md# | 1 - 4 files changed, 19 insertions(+), 4 deletions(-) delete mode 100644 docs/articles/.~lock.motivation.md# diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9e1baed..5c208a8 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -8,7 +8,7 @@ updates: day: monday time: "06:00" timezone: Etc/UTC - open-pull-requests-limit: 10 + open-pull-requests-limit: 0 commit-message: prefix: "chore(deps)" include: scope @@ -29,7 +29,7 @@ updates: day: monday time: "06:00" timezone: Etc/UTC - open-pull-requests-limit: 5 + open-pull-requests-limit: 0 commit-message: prefix: "ci(actions)" include: scope diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35b1b0f..4510501 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,6 +22,12 @@ jobs: go-version: stable cache: true + - name: Install UPX + run: | + sudo apt-get update + sudo apt-get install -y upx-ucl + upx --version + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: diff --git a/.goreleaser.yml b/.goreleaser.yml index 989e6a0..91427bf 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -25,12 +25,22 @@ builds: goarch: arm64 flags: - -trimpath + - -buildvcs=false ldflags: - - -s -w + - -s -w -buildid= - -X main.version={{.Version}} - -X main.commit={{.Commit}} - -X main.date={{.Date}} +# Linux only: UPX shrinks ELF; skip darwin/windows (signing / compatibility). +# See https://goreleaser.com/customization/builds/upx/ +upx: + - enabled: true + ids: [envc] + goos: [linux] + compress: best + lzma: true + archives: - id: envc ids: [envc] diff --git a/docs/articles/.~lock.motivation.md# b/docs/articles/.~lock.motivation.md# deleted file mode 100644 index 4933618..0000000 --- a/docs/articles/.~lock.motivation.md# +++ /dev/null @@ -1 +0,0 @@ -,ano,anoga,02.05.2026 18:15,/home/ano/.local/share/onlyoffice; \ No newline at end of file