Skip to content

🎉 Release Binary #25

🎉 Release Binary

🎉 Release Binary #25

Workflow file for this run

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
go mod tidy
go mod vendor
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
- name: Install Dependences
run: |
brew install libpcap
# 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
go mod tidy
go mod vendor
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
- name: Install Dependences
run: |
sudo apt install -yy libpcap-dev
env:
GOENABLE: 1
# CGO_LDFLAGS: "-Wl,-static -L/usr/lib/x86_64-linux-gnu/libpcap.a -lpcap -Wl,-Bdynamic"
# 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
go mod tidy
go mod vendor
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20
- 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 }}