Skip to content

Commit

Permalink
Merge pull request #93 from solaoi/fix_linux-build-binary
Browse files Browse the repository at this point in the history
fix not working on centos7
  • Loading branch information
solaoi authored May 14, 2022
2 parents 3fe1fa0 + 320690a commit ba0c780
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ jobs:
run: |
sudo apt install gcc-mingw-w64
- name: Setup musl-tools
run: |
sudo apt-get install musl-tools
- name: Set up Go
uses: actions/setup-go@v2
with:
Expand Down
6 changes: 3 additions & 3 deletions command/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
project_name: tuna
env:
- GO111MODULE=on
- CGO_ENABLED=1
before:
hooks:
- go mod tidy
Expand All @@ -16,7 +17,6 @@ builds:
- -X github.com/solaoi/tuna-mayonnaise/cmd.commit={{.FullCommit}}
- -X github.com/solaoi/tuna-mayonnaise/cmd.date={{.Date}}
env:
- CGO_ENABLED=1
- CC=/home/runner/work/osxcross/target/bin/o64-clang
- CXX=/home/runner/work/osxcross/target/bin/o64-clang++
goos:
Expand All @@ -34,7 +34,6 @@ builds:
- -X github.com/solaoi/tuna-mayonnaise/cmd.commit={{.FullCommit}}
- -X github.com/solaoi/tuna-mayonnaise/cmd.date={{.Date}}
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
goos:
Expand All @@ -51,8 +50,9 @@ builds:
- -X github.com/solaoi/tuna-mayonnaise/cmd.version={{.Tag}}
- -X github.com/solaoi/tuna-mayonnaise/cmd.commit={{.FullCommit}}
- -X github.com/solaoi/tuna-mayonnaise/cmd.date={{.Date}}
- -linkmode external -extldflags "-static"
env:
- CGO_ENABLED=1
- CC=musl-gcc
goos:
- linux
goarch:
Expand Down

0 comments on commit ba0c780

Please sign in to comment.