From 88dbd62aa8ced3dcc371d248db1cc2b36988e16d Mon Sep 17 00:00:00 2001 From: Umberto Baldi Date: Wed, 27 Jul 2022 15:22:09 +0200 Subject: [PATCH] enable static build (macos still requires it) there are no more dependencies required we can do this https://github.com/fyne-io/systray/issues/24#issuecomment-1196566312 --- .github/workflows/release.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d1dfe2e..0fa5e264 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,10 @@ jobs: run: shell: bash +# by default disable CGO, it's not needed (except on macos) + env: + CGO_ENABLED: 0 + runs-on: ${{ matrix.os }} steps: @@ -102,6 +106,7 @@ jobs: - name: Build the Agent for macos env: + CGO_ENABLED: 1 MACOSX_DEPLOYMENT_TARGET: 10.15 # minimum supported version for mac CGO_CFLAGS: -mmacosx-version-min=10.15 CGO_LDFLAGS: -mmacosx-version-min=10.15