1
4
mirror of https://github.com/yunginnanet/HellPot synced 2024-06-25 23:38:02 +00:00

CD: Enable automatic builds and releases

This commit is contained in:
kayos@tcp.direct 2023-02-02 21:18:47 -08:00
parent 098e21e803
commit 85897a2e2c
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

31
.github/workflows/build.yml vendored Normal file

@ -0,0 +1,31 @@
on:
push:
branches: [ master ]
jobs:
releases-matrix:
name: Build and Release
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: ["386", amd64, arm64]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.35
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.19.5.linux-amd64.tar.gz"
project_path: "./cmd/HellPot"
binary_name: "HellPot"
extra_files: LICENSE README.md
build_flags: -trimpath
pre_command: export CGO_ENABLED=0
ldflags: -s -w