-
Notifications
You must be signed in to change notification settings - Fork 33
44 lines (35 loc) · 1.21 KB
/
smoke.yml
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
name: Smoke Test
on: # yamllint disable-line rule:truthy
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
Smoke:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Install packages
run: |
sudo apt-get update && sudo apt-get install -y\
build-essential libbsd-dev libelf-dev libjson-c-dev\
libnl-3-dev libnl-cli-3-dev libnuma-dev libpcap-dev meson\
pkg-config wget
- name: Install libbpf
run: |
wget -q -O - https://github.com/libbpf/libbpf/archive/refs/tags/v0.5.0.tar.gz \
| tar -xzC "${GITHUB_WORKSPACE}" \
&& sudo make -j -C "${GITHUB_WORKSPACE}"/libbpf-0.5.0/src install \
&& sudo rm -rf "${GITHUB_WORKSPACE}"/libbpf-0.5.0
- name: Build
run: make
- name: Short test
run: meson test -C builddir --suite short
- name: Upload testlog
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: testlog.txt
path: ${{ github.workspace }}/builddir/meson-logs/testlog.txt