Skip to content

Commit

Permalink
ci: Update build command
Browse files Browse the repository at this point in the history
  • Loading branch information
layou233 committed Jul 15, 2024
1 parent 092a11d commit 073a452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ^1.19
go-version: ^1.20
check-latest: true

- name: Tidy up Go Modules
Expand All @@ -99,7 +99,7 @@ jobs:
run: echo "git_hash=$(git rev-parse --short HEAD || echo "unknown version")" >> $GITHUB_OUTPUT

- name: Build
run: go build -v -trimpath -ldflags '-X "github.com/layou233/zbproxy/v3/version.CommitHash=${{ steps.hash.outputs.git_hash }}" -s -w -buildid=' -o ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }}${{ matrix.goamd64 }}
run: go build -v -trimpath -ldflags '-X "github.com/layou233/zbproxy/v3/version.CommitHash=${{ steps.hash.outputs.git_hash }}" -s -w -buildid=' -o ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }}${{ matrix.goamd64 }} ./cmd/zbproxy

- name: Handle for Windows Build
if: ${{ env.GOOS == 'windows' }}
Expand Down

0 comments on commit 073a452

Please sign in to comment.