Skip to content

Commit

Permalink
Create bd2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent authored Oct 30, 2023
1 parent 523bb61 commit 7f5b1b9
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/bd2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
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
chmod +x .github/workflows/upx.sh
- 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 }}
build-linux:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
with:
submodules: recursive
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.3
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt install -yy libpcap-dev upx
chmod +x .github/workflows/upx.sh
- 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: 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 }}

0 comments on commit 7f5b1b9

Please sign in to comment.