Skip to content

Commit d070c61

Browse files
authored
Merge pull request #3 from kentik/zs-newBuild
Update libkflow to v2.5.1
2 parents 181719f + d193ff1 commit d070c61

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ jobs:
88
golang:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
submodules: true
14-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version: "1.17.13"
17+
cache: false
1718
- run: patch -d go -p1 < go-runtime.patch
1819
- run: bash ./make.bash
1920
working-directory: go/src
2021
- run: tar -czf golang.tar.gz go
21-
- uses: actions/upload-artifact@v3
22+
- uses: actions/upload-artifact@v4
2223
with:
2324
name: golang.tar.gz
2425
path: golang.tar.gz
@@ -38,15 +39,15 @@ jobs:
3839
goos: linux
3940
runs-on: ubuntu-latest
4041
steps:
41-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4243
with:
4344
fetch-depth: 0
4445
submodules: true
4546
- uses: ./.github/actions/setup-xcc
4647
with:
4748
target: ${{ matrix.target }}
4849
version: f9cb5162
49-
- uses: actions/download-artifact@v3
50+
- uses: actions/download-artifact@v4
5051
with:
5152
name: golang.tar.gz
5253
- run: tar -xzf golang.tar.gz -C /opt
@@ -65,7 +66,7 @@ jobs:
6566
env:
6667
TARGET: ${{ matrix.target }}
6768
OUTPUT: ${{ matrix.goos }}-${{ matrix.goarch }}
68-
- uses: actions/upload-artifact@v3
69+
- uses: actions/upload-artifact@v4
6970
with:
7071
name: libkflow-${{ matrix.target }}.a
7172
path: libkflow-${{ matrix.target }}.a
@@ -74,10 +75,10 @@ jobs:
7475
publish:
7576
runs-on: ubuntu-latest
7677
steps:
77-
- uses: actions/download-artifact@v3
78+
- uses: actions/download-artifact@v4
7879
with:
7980
path: artifacts
80-
- uses: actions/github-script@v6
81+
- uses: actions/github-script@v7
8182
with:
8283
script: |
8384
const version = context.sha.substring(0, 8);
@@ -91,7 +92,7 @@ jobs:
9192
9293
core.setOutput('version', version);
9394
id: create-tag
94-
- uses: softprops/action-gh-release@v1
95+
- uses: softprops/action-gh-release@v2
9596
with:
9697
tag_name: ${{ steps.create-tag.outputs.version }}
9798
files: artifacts/**/*

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MUSL-libkflow
2+
3+
Since libkflow uses CGO internally, we need to build it with a musl c compiler to
4+
satisfy our end goal of producing a single statically linked kprobe binary.
5+
Unfortunately, creating static libraries in GO with CGO enabled only works with a
6+
patched version of Go.
7+
8+
## Creating a new version of libkflow
9+
10+
This guide assumes that you want to build the latest version of libkflow as it exists
11+
on the `main` branch of the `libkflow` repository.
12+
13+
### The Steps
14+
- Update the `libkflow` submodule to the latest version
15+
```shell
16+
git submodule update --remote libkflow
17+
git add .
18+
git commit -m "Update libkflow to $LATEST_VERSION"
19+
```
20+
- Push the changes to github, and the builder will take care of the rest.
21+
- One can find the built libraries in the output of the github action.

libkflow

Submodule libkflow updated 486 files

0 commit comments

Comments
 (0)