-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (52 loc) · 1.69 KB
/
package.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
name: Build deb package
on: [push]
jobs:
build:
runs-on: ubuntu-24.04
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add description
run: |
git tag v6.9.0
- name: Download apt-get deiendencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get -y purge unattended-upgrades
sudo apt-get -y update
sudo apt-get -y install bison flex devscripts debhelper-compat libbsd-dev dh-package-notes dh-sequence-movetousr
- name: Enable src repos
run: |
sudo sed -i 's/^Types: deb/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
sudo apt update
- name: Import debian rules
run: |
git remote add debian $(debcheckout -d iproute2 | awk '/url/{print $2;}')
git fetch debian
git checkout debian/$(git describe --tags | tr -d 'v')-1 -- debian
sudo apt build-dep iproute2
- name: Build deb
run: dpkg-buildpackage -b -rfakeroot -us -uc -d
- name: Extract branch name
shell: bash
run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Zip artifacts
run: |
mkdir -p iproute2-l4s
mv -t iproute2-l4s ../*.deb
zip -r iproute2-l4s.zip iproute2-l4s
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: iproute2-l4s
path: iproute2-l4s
- name: Release tip build
uses: pyTooling/Actions/releaser@main
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.extract_branch.outputs.branch }}-build
files: |
iproute2-l4s.zip