diff --git a/.github/workflows/build-artifact-on-push.yml b/.github/workflows/build-artifact-on-push.yml index 16cb79b..b7593f0 100644 --- a/.github/workflows/build-artifact-on-push.yml +++ b/.github/workflows/build-artifact-on-push.yml @@ -8,7 +8,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '1.18.4' # The Go version to download (if necessary) and use. + go-version: '1.20.6' # The Go version to download (if necessary) and use. - run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo - run: $Env:Path+= ";" + $Env:GOPATH + "\bin"; go generate - run: go build -ldflags="-H windowsgui" -o WiFi-export-import-${{ github.sha }}-x64.exe diff --git a/.github/workflows/create-release-when-new-tag.yml b/.github/workflows/create-release-when-new-tag.yml index 41be932..17e8fd3 100644 --- a/.github/workflows/create-release-when-new-tag.yml +++ b/.github/workflows/create-release-when-new-tag.yml @@ -12,7 +12,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-go@v3 with: - go-version: '1.18.4' # The Go version to download (if necessary) and use. + go-version: '1.20.6' # The Go version to download (if necessary) and use. - run: go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo - run: $Env:Path+= ";" + $Env:GOPATH + "\bin"; go generate - run: go build -ldflags="-X 'main.Version=${{github.ref_name}}' -H windowsgui" -o WiFi-export-import-${{github.ref_name}}-x64.exe