Skip to content

Commit

Permalink
fix not working on centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
solaoi committed May 14, 2022
1 parent 3fe1fa0 commit 320690a
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 320690a

Please sign in to comment.