Skip to content

Commit

Permalink
github: set builtBy to get Go compiler version; upgrade to go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDunne committed Feb 1, 2022
1 parent 20c5494 commit a0e375c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Set up linux dependencies
run: sudo apt-get update && sudo apt-get install -y gcc libgtk-3-dev libappindicator3-dev
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Set up linux dependencies
if: ${{ matrix.goos == 'linux' }}
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
name: Build SNI
run: |
SET GOARCH=${{matrix.goarch}}
go build -ldflags="-H=windowsgui -X 'main.version=${{env.GITHUB_REF_SLUG}}' -X 'main.commit=${{env.GITHUB_SHA_SHORT}}' -X 'main.date=$(date +'%Y-%m-%dT%H:%M:%S')'" -o ./${{env.basename}}/sni${{matrix.exesuffix}} ./cmd/sni
go build -ldflags="-H=windowsgui -X 'main.version=${{env.GITHUB_REF_SLUG}}' -X 'main.commit=${{env.GITHUB_SHA_SHORT}}' -X 'main.date=$(date +'%Y-%m-%dT%H:%M:%S')' -X 'main.builtBy=$(go version | cut -f3 -d ' ')'" -o ./${{env.basename}}/sni${{matrix.exesuffix}} ./cmd/sni
- if: ${{ matrix.goos != 'windows' }}
name: Build SNI
Expand Down

0 comments on commit a0e375c

Please sign in to comment.