Skip to content

Commit 85efd3f

Browse files
committed
Add basic goreleaser configuration
Configure goreleaser to build and release the runner binary for multiple platforms
1 parent b1dfae8 commit 85efd3f

File tree

2 files changed

+73
-0
lines changed

2 files changed

+73
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
goreleaser:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: '1.23'
24+
25+
- name: Run GoReleaser
26+
uses: goreleaser/goreleaser-action@v6
27+
with:
28+
distribution: goreleaser
29+
version: '~> v2'
30+
args: release --clean
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
project_name: kernel-bindings-tests
2+
3+
builds:
4+
- id: runner
5+
main: ./cmd/runner
6+
binary: runner
7+
env:
8+
- CGO_ENABLED=0
9+
goos:
10+
- linux
11+
- darwin
12+
- windows
13+
goarch:
14+
- amd64
15+
- arm64
16+
ignore:
17+
- goos: windows
18+
goarch: arm64
19+
20+
archives:
21+
- id: runner-archive
22+
builds:
23+
- runner
24+
format: tar.gz
25+
format_overrides:
26+
- goos: windows
27+
format: zip
28+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
29+
30+
checksum:
31+
disable: true
32+
33+
changelog:
34+
disable: true
35+
36+
release:
37+
github:
38+
owner: stringintech
39+
name: kernel-bindings-tests
40+
draft: false
41+
prerelease: auto

0 commit comments

Comments
 (0)