fix: build
This commit is contained in:
6
.github/workflows/release-linux.yml
vendored
6
.github/workflows/release-linux.yml
vendored
@@ -28,12 +28,10 @@ jobs:
|
||||
- name: Build Go for amd64
|
||||
run: |
|
||||
go mod download
|
||||
go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}"" -extldflags '-static'" -o gpt-load
|
||||
go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load
|
||||
- name: Build Go for arm64
|
||||
run: |
|
||||
sudo apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y gcc-aarch64-linux-gnu
|
||||
CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}"" -extldflags '-static'" -o gpt-load-arm64
|
||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X gpt-load/internal/version.Version=${{ github.ref_name }}" -o gpt-load-arm64
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
Reference in New Issue
Block a user