Skip to content

Commit

Permalink
chore: go build bin test#
Browse files Browse the repository at this point in the history
  • Loading branch information
y-eight committed Nov 30, 2023
1 parent 15fb45b commit 4b6b42c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ permissions:
contents: read

jobs:
binary:
name: Binary
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: "go.mod"

- name: Install dependencies
run: go get .

- name: Build
run: VERSION=${{ github.ref_name }} CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION}" -o sparrow .

container-image:
name: Container image
runs-on: ubuntu-latest
Expand Down

0 comments on commit 4b6b42c

Please sign in to comment.