From 58cb7722b60880079c714a8b2edb386d3f982f33 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Sun, 9 May 2021 11:50:40 +0100 Subject: [PATCH] Fix passing ldflags to the build process. --- .github/workflows/release.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d58abe2..42b266e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -161,15 +161,14 @@ jobs: with: fetch-depth: 0 - name: Compile binary - uses: thatisuday/go-cross-build@v1 - env: - INPUT_LDFLAGS: "-s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }}" + uses: thatisuday/go-cross-build@v1.0.2 with: platforms: linux/amd64,darwin/amd64,windows/amd64,linux/arm64,darwin/amd64 name: semver-gen package: ./ compress: false dest: dist + ldflags: -s -w -X main.PKG_VERSION=${{ needs.prepare.outputs.RELEASE_VERSION }} - name: Get list of the commits since last release run: | echo "$(git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s")" > .release_notes