Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: support build_mode=pie #227

Merged
merged 1 commit into from
Aug 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,13 @@ jobs:
strategy:
matrix:
goos: [linux]
goarch: [arm64, 386, riscv64, mips64, mips64le, mipsle, mips]
goarch: [386, riscv64]

include:
# BEGIN Linux ARM 5 6 7
# BEGIN Linux ARM 5 6 7 64
- goos: linux
goarch: arm64
buildargs: -buildmode=pie
- goos: linux
goarch: arm
goarm: 7
Expand All @@ -96,12 +99,15 @@ jobs:
- goos: linux
goarch: amd64
goamd64: v1
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v2
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v3
buildargs: -buildmode=pie
# END Linux AMD64 v1 v2 v3

# BEGIN Linux mips
Expand Down Expand Up @@ -131,6 +137,7 @@ jobs:
GOAMD64: ${{ matrix.goamd64 }}
CGO_ENABLED: ${{ matrix.cgo_enabled || 0 }}
CC: ${{ matrix.cc }}
BUILD_ARGS: ${{ matrix.buildargs }}

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,13 @@ jobs:
strategy:
matrix:
goos: [linux]
goarch: [arm64, 386, riscv64, mips64, mips64le, mipsle, mips]
goarch: [386, riscv64]

include:
# BEGIN Linux ARM 5 6 7
# BEGIN Linux ARM 5 6 7 64
- goos: linux
goarch: arm64
buildargs: -buildmode=pie
- goos: linux
goarch: arm
goarm: 7
Expand All @@ -87,12 +90,15 @@ jobs:
- goos: linux
goarch: amd64
goamd64: v1
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v2
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v3
buildargs: -buildmode=pie
# END Linux AMD64 v1 v2 v3

# BEGIN Linux mips
Expand Down Expand Up @@ -122,6 +128,7 @@ jobs:
GOAMD64: ${{ matrix.goamd64 }}
CGO_ENABLED: ${{ matrix.cgo_enabled || 0 }}
CC: ${{ matrix.cc }}
BUILD_ARGS: ${{ matrix.buildargs }}

steps:
- uses: actions/checkout@v3
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,13 @@ jobs:
strategy:
matrix:
goos: [linux]
goarch: [arm64, 386, riscv64, mips64, mips64le, mipsle, mips]
goarch: [386, riscv64]

include:
# BEGIN Linux ARM 5 6 7
# BEGIN Linux ARM 5 6 7 64
- goos: linux
goarch: arm64
buildargs: -buildmode=pie
- goos: linux
goarch: arm
goarm: 7
Expand All @@ -90,12 +93,15 @@ jobs:
- goos: linux
goarch: amd64
goamd64: v1
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v2
buildargs: -buildmode=pie
- goos: linux
goarch: amd64
goamd64: v3
buildargs: -buildmode=pie
# END Linux AMD64 v1 v2 v3

# BEGIN Linux mips
Expand Down Expand Up @@ -125,6 +131,7 @@ jobs:
GOAMD64: ${{ matrix.goamd64 }}
CGO_ENABLED: ${{ matrix.cgo_enabled || 0 }}
CC: ${{ matrix.cc }}
BUILD_ARGS: ${{ matrix.buildargs }}

steps:
- uses: actions/checkout@v3
Expand Down