Skip to content

up 2023-10-28

up 2023-10-28 #118

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
- 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
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/mac.yml --rm-dist
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: Install cross-compiler for linux/arm64
# run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21.3

Check failure on line 51 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 51
- name: Install Dependences
run: |
sudo apt-get update
# sudo apt-get -y install gcc-mingw-w64-x86-64
# sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
# sudo apt-get -y install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
sudo apt install -yy libpcap-dev
# sudo apt install upx gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
chmod +x .github/workflows/upx.sh
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release -f .github/build/linux.yml --rm-dist
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 --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}