Skip to content

Commit 034424e

Browse files
committed
feat: expand gh actions
1 parent df2b098 commit 034424e

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

.github/workflows/build.yaml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
name: Go Build
1+
name: Build
22

33
on:
44
push:
55
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
86

97
jobs:
108
build:
119
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
goarch: [amd64, arm64]
1213

1314
steps:
14-
- name: Checkout code
15+
- name: Checkout
1516
uses: actions/checkout@v5
1617

1718
- name: Set up Go
18-
uses: actions/setup-go@v5
19-
with:
20-
go-version: "1.24"
21-
22-
- name: Run golangci-lint
23-
uses: golangci/golangci-lint-action@v6
19+
uses: actions/setup-go@v4
2420
with:
25-
version: latest
21+
go-version: '1.24'
2622

27-
- name: Build
28-
run: go build .
23+
- name: Build binary
24+
run: |
25+
echo "Building for ${{ matrix.goarch }}"
26+
GOOS=linux GOARCH=${{ matrix.goarch }} go build -o observer-${{ matrix.goarch }} .

0 commit comments

Comments
 (0)