Skip to content

Commit

Permalink
chore: Add workflow to publish binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Tucker <[email protected]>
  • Loading branch information
dave-tucker committed Mar 16, 2024
1 parent 4f00ea3 commit ff356d3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build

on:
push:
branches: ["main"]

jobs:
build:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest"]
goos: ["linux", "darwin"]
goarch: ["amd64", "arm64"]
runs-on: ${{ matrix.os }}
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: false
- run: go build -o worker_${{ matrix.goos }}_${{ matrix.goarch }} main.go
working-directory: ./worker
- uses: actions/upload-artifact@v4
with:
name: worker_${{ matrix.goos }}_${{ matrix.goarch }}
path: worker/worker_${{ matrix.goos }}_${{ matrix.goarch }}

0 comments on commit ff356d3

Please sign in to comment.