Skip to content

fix build

fix build #2

Workflow file for this run

name: Main
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: actions/setup-go@v4
with:
go-version: '1.18'
run: |
go env CGO_ENABLED=0
go env GOOS=windows
go env GOARCH=amd64
go build -o releases/portscan.exe
go env CGO_ENABLED=0
go env GOOS=linux
go env GOARCH=amd64
go build -ldflags="-s -d" -o releases/portscan
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
releases/portscan.exe
releases/portscan