From a23e5f80f04f234c0b2e6a3030a6cb0d83c02459 Mon Sep 17 00:00:00 2001 From: "Lars M. Rogne" Date: Wed, 24 Apr 2024 22:24:47 +0200 Subject: [PATCH] Smaller executables. --- .github/workflows/build_release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_release.yaml b/.github/workflows/build_release.yaml index 1cbaa2c..fa2b991 100644 --- a/.github/workflows/build_release.yaml +++ b/.github/workflows/build_release.yaml @@ -17,9 +17,9 @@ jobs: with: go-version: '>=1.22.1' - name: release-build-windows - run: GOOS=windows GOARCH=amd64 go build -o bin/collatz-${{ github.ref_name }}-windows-amd64.exe + run: GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o bin/collatz-${{ github.ref_name }}-windows-amd64.exe - name: release-build-linux - run: GOOS=linux GOARCH=amd64 go build -o bin/collatz-${{ github.ref_name }}-linux-amd64 + run: GOOS=linux GOARCH=amd64 go build -ldflags "-s -w" -o bin/collatz-${{ github.ref_name }}-linux-amd64 - name: Release uses: https://gitea.com/actions/release-action@main with: