Resolve #42 #29
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 All | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '>=1.21.0' | |
- run: go version | |
- name: GoReSym Build | |
run: | | |
$Env:GOOS='linux' | |
go build -o GoReSym_lin | |
$Env:GOOS='windows' | |
go build -o GoReSym_win.exe | |
$Env:GOOS='darwin' | |
go build -o GoReSym_mac | |
- name: Zip Build | |
run: | | |
Compress-Archive -DestinationPath GoReSym.zip -LiteralPath ./GoReSym_lin, ./GoReSym_win.exe, ./GoReSym_mac -CompressionLevel Fastest | |
- name: Release | |
uses: softprops/[email protected] | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: GoReSym.zip |