Skip to content

add tidy to makefile #2

add tidy to makefile

add tidy to makefile #2

Workflow file for this run

name: Build
on:
push:
branches:
- main
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_type }}
cancel-in-progress: true
jobs:
Build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: write
env:
GOPROXY: https://goproxy.io,direct
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: false
check-latest: true
- name: Tidy
run: make tidy
- name: Build
run: make build
- name: UPX
run: |
set -xe
export temp_dir=$(mktemp -d)
cd "$temp_dir"
wget https://github.com/upx/upx/releases/download/v4.0.2/upx-4.0.2-amd64_linux.tar.xz
tar -xvf upx-4.0.2-amd64_linux.tar.xz upx-4.0.2-amd64_linux/upx
mv ./upx-4.0.2-amd64_linux/upx .
cd -
"$temp_dir/upx" --no-color --mono --no-progress --ultra-brute --no-backup ./bin/IPSeekBot
"$temp_dir/upx" --test ./bin/IPSeekBot
rm -rfv "$temp_dir"
- name: Test
run: make test
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: coverage.out
flags: unittests
fail_ci_if_error: false
verbose: true
- name: Upload Build Artifacts
uses: actions/upload-artifact@v3
with:
name: ingest
path: ./bin/IPSeekBot
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./bin/IPSeekBot