From 44f41823d396fd44e785234e952173ffbe1743bf Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 11 Jul 2024 21:24:35 -0400 Subject: [PATCH] ci: build linux amd64 and upload artifact --- .forgejo/workflows/push.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.forgejo/workflows/push.yml b/.forgejo/workflows/push.yml index 48c6f95..93b7e05 100644 --- a/.forgejo/workflows/push.yml +++ b/.forgejo/workflows/push.yml @@ -22,3 +22,21 @@ jobs: go-version-file: './go.mod' - name: Check formatting run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi + build: + runs-on: ubuntu-latest + needs: [sast, tests] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version-file: './go.mod' + - name: Build (Linux AMD64) + run: go build . + env: + GOOS: linux + GOARCH: amd64 + - name: Upload binary + uses: actions/upload-artifact@v3 + with: + name: cobble-linux-amd64 + path: ./cobble