-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for darwin build. PIE flag doesn't work on darwin and linux 386 w…
…ith goreleaser
- Loading branch information
Showing
1 changed file
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,42 @@ on: | |
tags: | ||
- v*.* | ||
jobs: | ||
releases-matrix-linux: | ||
name: Release Go Binary for linux | ||
|
||
release-linux-amd64: | ||
name: Release Go Binary for linux amd64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: linux | ||
goarch: amd64 | ||
goversion: 1.16 | ||
project_path: "./src" | ||
build_flags: "-buildmode=pie" | ||
ldflags: "-s -w" | ||
|
||
release-linux-386: | ||
name: Release Go Binary for linux 386 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: linux | ||
goarch: 386 | ||
goversion: 1.16 | ||
project_path: "./src" | ||
ldflags: "-s -w" | ||
|
||
releases-matrix-darwin: | ||
name: Release Go Binary for Darwin | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
goos: [linux, darwin] | ||
goos: [darwin] | ||
goarch: [386, amd64] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -20,5 +50,4 @@ jobs: | |
goarch: ${{ matrix.goarch }} | ||
goversion: 1.16 | ||
project_path: "./src" | ||
build_flags: "-buildmode=pie" | ||
ldflags: "-s -w" |