From 4b6b42cbc2cff8fa4711407a8a0ac513fa4f672b Mon Sep 17 00:00:00 2001 From: "maximilian.schubert@telekom.de" Date: Thu, 30 Nov 2023 10:10:30 +0100 Subject: [PATCH] chore: go build bin test# --- .github/workflows/artifacts.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 8ac34d54..dc358b8a 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -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