forked from L4STeam/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (79 loc) · 3.04 KB
/
Copy pathkernel.yml
File metadata and controls
84 lines (79 loc) · 3.04 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
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
name: Build deb package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Download apt-get dependencies
run: |
sudo env DEBIAN_FRONTEND=noninteractive apt-get -y purge unattended-upgrades
sudo env DEBIAN_FRONTEND=noninteractive apt-get -y update
sudo env DEBIAN_FRONTEND=noninteractive apt-get -y install fakeroot \
libelf-dev libssl-dev flex bison coreutils build-essential \
xz-utils devscripts initramfs-tools wget linux-headers-5.8.0-50-generic
- name: Kernel config
run: |
cp /usr/src/linux-headers-5.8.0-50-generic/.config .
scripts/config --disable DEBUG_INFO \
--set-str SYSTEM_TRUSTED_KEYS "" \
--module CONFIG_TCP_CONG_PRAGUE \
--module CONFIG_TCP_CONG_BBR \
--module CONFIG_TCP_CONG_BBR2 \
--module CONFIG_TCP_CONG_DCTCP \
--module CONFIG_NET_IPIP \
--module CONFIG_NET_CLS_U32 \
--module CONFIG_NET_SCH_DUALPI2 \
--module CONFIG_NET_SCH_PIE \
--module CONFIG_NET_SCH_FQ \
--module CONFIG_NET_SCH_FQ_CODEL \
--module CONFIG_NET_SCH_CODEL \
--module CONFIG_NET_SCH_RED \
--module CONFIG_NET_SCH_CAKE \
--module CONFIG_NET_SCH_HTB \
--module CONFIG_NET_SCH_NETEM \
--module CONFIG_NET_SCH_INGRESS \
--module CONFIG_NET_ACT_MIRRED \
--module CONFIG_IFB \
--module CONFIG_VETH \
--module CONFIG_BRIDGE \
--module CONFIG_INET_DIAG
make olddefconfig
- name: make-deb
run: make -j$(nproc) bindeb-pkg \
LOCALVERSION=-$(git rev-parse --short HEAD)-prague-${GITHUB_RUN_NUMBER} \
KDEB_PKGVERSION=1
- name: Move artifacts
run: |
mkdir -p debian_build
mv -t debian_build ../linux-*.deb
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: prague-kernel
path: debian_build
release:
name: Release build artifacts for the testing branch
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/testing'
steps:
- name: Get artifact
uses: actions/download-artifact@v2
with:
name: prague-kernel
- name: Include iproute2 into the pre-release archive
run: |
wget https://github.com/L4STeam/iproute2/releases/download/master-build/iproute2-l4s.zip
unzip iproute2-l4s
mv -t . iproute2-l4s/*.deb
- name: Zip artifacts
run: zip -r l4s-testing.zip *.deb
- name: Release tip build
uses: eine/tip@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: testing-build
files: |
l4s-testing.zip