Skip to content

Build Windows x64 EXE & Release #1

Build Windows x64 EXE & Release

Build Windows x64 EXE & Release #1

name: Build Windows x64 EXE & Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup MSYS2 & MinGW-w64
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: >-
mingw-w64-x86_64-gcc
mingw-w64-x86_64-make
make
- name: Build masscan
run: |
make -j$(nproc)
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: masscan-windows-x64
path: bin/masscan.exe
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: bin/masscan.exe
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}