-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (47 loc) · 1.66 KB
/
release.yml
File metadata and controls
56 lines (47 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release
on:
push:
branches:
- master
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: patch
release_branches: master
dry_run: false
- name: Fetch tags
run: git fetch --tags
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.24"
- name: Install BPF toolchain
run: |
sudo apt-get update
sudo apt-get install -y clang llvm linux-tools-generic libbpf-dev
# linux-tools-generic installs bpftool under a kernel-versioned path;
# expose it on PATH for `make generate`.
sudo ln -sf $(ls /usr/lib/linux-tools/*/bpftool | head -n1) /usr/local/bin/bpftool
- name: Generate embedded BPF objects
run: make generate
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: steps.tag_version.outputs.new_tag != ''