We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df2b098 commit 034424eCopy full SHA for 034424e
1 file changed
.github/workflows/build.yaml
@@ -1,28 +1,26 @@
1
-name: Go Build
+name: Build
2
3
on:
4
push:
5
branches: [ "master" ]
6
- pull_request:
7
- branches: [ "master" ]
8
9
jobs:
10
build:
11
runs-on: ubuntu-latest
+ strategy:
+ matrix:
12
+ goarch: [amd64, arm64]
13
14
steps:
- - name: Checkout code
15
+ - name: Checkout
16
uses: actions/checkout@v5
17
18
- name: Set up Go
- 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
+ uses: actions/setup-go@v4
24
with:
25
- version: latest
+ go-version: '1.24'
26
27
- - name: Build
28
- run: go build .
+ - name: Build binary
+ run: |
+ echo "Building for ${{ matrix.goarch }}"
+ GOOS=linux GOARCH=${{ matrix.goarch }} go build -o observer-${{ matrix.goarch }} .
0 commit comments