Skip to content

Commit

Permalink
Add basic ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenness authored Oct 8, 2024
1 parent f154c6b commit 0ad7ba3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: build
env:
CGO_ENABLED: 0
GOOS: linux
GOARCH: amd64
run: |
go build -buildvcs=false -ldflags="-s -w" -o elect -v ./...
tar czf elect.tar.gz elect
- uses: softprops/action-gh-release@v2
with:
files: ${{ github.workspace }}/elect.tar.gz

0 comments on commit 0ad7ba3

Please sign in to comment.