-
Notifications
You must be signed in to change notification settings - Fork 8
88 lines (86 loc) · 2.38 KB
/
push.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Test and build on push
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install python3 clang-15 pahole \
bats bc conntrack ethtool iperf3 jq socat tshark wireguard-tools \
libbpf-dev libffi-dev libelf-dev
- name: Build & Test
run: |
export BPF_CC=clang-15
sudo cp /sys/kernel/btf/vmlinux /lib/modules/`uname -r`/build
make -j
sudo nft delete table filter # Docker's nftables rule drops IPv4 packets in tests
sudo insmod out/mimic.ko
sudo make test
- name: Upload captured packets
uses: actions/upload-artifact@v4
if: always()
with:
name: pcap
path: out/*.pcapng
build-bookworm:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: -b -us -uc
docker-image: debian:bookworm-slim
- name: Upload
uses: actions/upload-artifact@v4
with:
name: bookworm
path: debian/artifacts/*.deb
build-noble:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
uses: jtdor/build-deb-action@v1
with:
buildpackage-opts: -b -us -uc
docker-image: ubuntu:noble
- name: Test Install
run: |
sudo apt install ./debian/artifacts/*.deb linux-headers-`uname -r`
- name: Upload
uses: actions/upload-artifact@v4
with:
name: noble
path: |
debian/artifacts/*.deb
debian/artifacts/*.ddeb
build-openwrt:
name: Build OpenWrt packages for ${{ matrix.arch }}
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- x86_64
- mips_24kc
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
uses: openwrt/gh-action-sdk@main
env:
ARCH: ${{ matrix.arch }}
V: s
- name: Store packages
uses: actions/upload-artifact@v2
with:
name: openwrt-${{ matrix.arch }}
path: bin/packages/${{ matrix.arch }}/packages/*.ipk