Skip to content

Commit a3197b9

Browse files
committed
add library builder
1 parent 59ac996 commit a3197b9

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

.github/workflows/package.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: upload package artifacts
2727
uses: actions/upload-artifact@v4
2828
with:
29-
name: package
29+
name: dkms_package
3030
path: rex-dkms*_all.deb
3131
if-no-files-found: error
3232

@@ -37,3 +37,40 @@ jobs:
3737
run: |
3838
sudo apt-get install -y ./rex-dkms*_all.deb \
3939
|| ( find /var/lib/dkms -name make.log -exec cat '{}' \; && false )
40+
41+
build_library:
42+
runs-on: ubuntu-22.04
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: prepare sources
47+
run: |
48+
rm -rf debian
49+
cp -r debian.lib debian
50+
51+
- name: install dependencies
52+
run: |
53+
sudo apt update
54+
sudo apt install -y libpcap-dev libbpf-dev
55+
56+
- run: |
57+
echo "nproc=$(nproc)" >> $GITHUB_ENV
58+
59+
- name: build package
60+
run: |
61+
dpkg-buildpackage -j${{env.nproc}} -b --no-sign
62+
mv ../libhyperscan*.deb ../libhyperscan*.ddeb .
63+
64+
- name: upload package artifacts
65+
uses: actions/upload-artifact@v4
66+
with:
67+
name: "package_${{ inputs.target }}"
68+
path: libhyperscan*deb
69+
if-no-files-found: error
70+
71+
- name: upload func test artifacts
72+
uses: actions/upload-artifact@v4
73+
with:
74+
name: "func_test_${{ inputs.target }}"
75+
path: obj-x86_64-linux-gnu/bin/unit-xdpscan
76+
if-no-files-found: error

0 commit comments

Comments
 (0)