document on how to download release executables #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'build' | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build_and_release: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Clone repo' | |
uses: 'actions/checkout@v4' | |
- name: 'Install go' | |
uses: 'actions/setup-go@v5' | |
with: | |
go-version: 'stable' | |
- run: 'GOOS=linux GOARCH=amd64 go build -o wgo-linux .' | |
- run: 'GOOS=linux GOARCH=arm64 go build -o wgo-linux-arm .' | |
- run: 'GOOS=darwin GOARCH=amd64 go build -o wgo-macos .' | |
- run: 'GOOS=darwin GOARCH=arm64 go build -o wgo-macos-apple-silicon .' | |
- run: 'GOOS=windows GOARCH=amd64 go build -o wgo-windows.exe .' | |
- name: 'Create release' | |
uses: 'svenstaro/upload-release-action@v2' | |
with: | |
repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
tag: '${{ github.ref }}' | |
file: 'wgo-*' | |
file_glob: 'true' |