Skip to content

Commit ecf5e60

Browse files
committed
ci: build and test pipeline
1 parent 80488ef commit ecf5e60

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/build.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- '.gitignore'
9+
- 'LICENSE'
10+
- '*.md'
11+
pull_request:
12+
paths-ignore:
13+
- '.gitignore'
14+
- 'LICENSE'
15+
- '*.md'
16+
17+
concurrency:
18+
# Only run once for latest commit per ref and cancel other (previous) runs.
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
env:
23+
GO_VERSION: 1.23
24+
25+
defaults:
26+
run:
27+
shell: bash
28+
29+
jobs:
30+
build:
31+
name: Build on ${{ matrix.os }}
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
os:
36+
- ubuntu-latest #x64
37+
- ubuntu-24.04-arm #arm64
38+
- windows-latest #x64
39+
- macos-13 #x64
40+
- macos-latest #arm64
41+
runs-on: ${{ matrix.os }}
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
- uses: actions/setup-go@v5
46+
with:
47+
go-version: ${{ env.GO_VERSION }}
48+
- name: Build
49+
run: make build
50+
- name: Test
51+
run: make test

0 commit comments

Comments
 (0)