Skip to content

Optimize and omit duplicate pattern matches (#66) #141

Optimize and omit duplicate pattern matches (#66)

Optimize and omit duplicate pattern matches (#66) #141

Workflow file for this run

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: Windows Build
run: |
$Env:GOOS='windows'
go build -o GoReSym.exe
Compress-Archive -DestinationPath GoReSym-windows.zip -LiteralPath ./GoReSym.exe -CompressionLevel Fastest
Remove-Item ./GoReSym.exe
- name: Linux Build
run: |
$Env:GOOS='linux'
go build -o GoReSym
Compress-Archive -DestinationPath GoReSym-linux.zip -LiteralPath ./GoReSym -CompressionLevel Fastest
Remove-Item ./GoReSym
- name: Mac Build
run: |
$Env:GOOS='darwin'
go build -o GoReSym
Compress-Archive -DestinationPath GoReSym-mac.zip -LiteralPath ./GoReSym -CompressionLevel Fastest
Remove-Item ./GoReSym
- name: Release Windows
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym-windows.zip
- name: Release Linux
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym-linux.zip
- name: Release Mac
uses: softprops/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
files: GoReSym-mac.zip