Skip to content

Commit

Permalink
update GH actions, update Go to newest version
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaczanowski committed Jul 19, 2023
1 parent 208aa95 commit 0cc6a1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-artifact-on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ jobs:
name: Build and upload artifact on push
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@latest
- uses: actions/setup-go@latest
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
- run: $Env:GOARCH="386"; go build -ldflags="-H windowsgui" -o WiFi-export-import-${{ github.sha }}-x86.exe

- name: Upload Artifact (x64)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@latest
with:
name: WiFi-export-import-${{ github.sha }}-x64.exe.zip
path: ./WiFi-export-import-${{ github.sha }}-x64.exe
retention-days: 5

- name: Upload Artifact (x86)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@latest
with:
name: WiFi-export-import-${{ github.sha }}-x86.exe.zip
path: ./WiFi-export-import-${{ github.sha }}-x86.exe
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/create-release-when-new-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
name: Build and upload artifact when new tag
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
- uses: actions/checkout@latest
- uses: actions/setup-go@latest
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
Expand All @@ -32,7 +32,7 @@ jobs:

- name: Upload Release Asset (x64)
id: upload-release-asset-x64
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -43,7 +43,7 @@ jobs:

- name: Upload Release Asset (x84)
id: upload-release-asset-x86
uses: actions/upload-release-asset@v1
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 0cc6a1f

Please sign in to comment.