Skip to content

Commit

Permalink
ldflags
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Jun 3, 2022
1 parent a89bb09 commit 41e135a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
release-linux-amd64:
name: release linux/amd64
name: Build and release
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,12 +20,12 @@ jobs:
goos: windows
steps:
- uses: actions/checkout@v2
- uses: wangyoucao577/go-release-action@v1.22
- uses: wangyoucao577/go-release-action@v1.28
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goversion: 1.17
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "CFExporter"
pre_command: "sed -i 's/${VERSION}/${{github.ref_name}}/g' main.go"
build_flags: "-extldflags=-static"
ldflags: "-extldflags=-static"

0 comments on commit 41e135a

Please sign in to comment.