Skip to content

Commit d99df36

Browse files
committed
build: Add build workflow
Signed-off-by: Paulo Gomes <[email protected]>
1 parent bc2a51a commit d99df36

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches:
8+
- main
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: none
14+
15+
jobs:
16+
17+
build:
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
go-version: [stable]
22+
platform: [ubuntu-latest, ubuntu-24.04-arm, macos-latest, windows-latest]
23+
24+
runs-on: ${{ matrix.platform }}
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
- name: Setup Go
29+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
30+
with:
31+
go-version: ${{ matrix.go-version }}
32+
33+
- run: make build

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: build
2+
build:
3+
go build -o build/ ./...

0 commit comments

Comments
 (0)