🎉 Release Binary #133
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: 🎉 Release Binary | |
on: | |
create: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
build-mac: | |
runs-on: macos-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.3 | |
- name: Install Dependences | |
run: | | |
brew install libpcap upx | |
# git submodule update --init --recursive --remote | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release -f .github/build/mac.yml --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# https://github.com/marketplace/actions/run-on-architecture#supported-platforms | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.3 | |
- name: Install Dependences | |
run: | | |
sudo apt install -yy --fix-missing libpcap-dev upx | |
# git submodule update --init --recursive --remote | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release -f .github/build/linux.yml --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-windows: | |
runs-on: windows-latest | |
steps: | |
- name: Code checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
# - name: Install upx | |
# run: | | |
# mkdir upx | |
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
# Invoke-WebRequest "https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win32.zip" -OutFile "upx.zip" | |
# Expand-Archive upx.zip -DestinationPath upx | |
# setx PATH "$env:PATH;$(Get-Location)/upx/x86_64-w64-mingw32" | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.21.3 | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v2 | |
with: | |
version: latest | |
args: release -f .github/build/windows.yml --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |