-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.52 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
name: Build deb package
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
permissions: write-all
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add description
run: |
git tag v5.16.0
- 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 devscripts debhelper-compat libbsd-dev
- name: Enable src repos
run: |
sudo sed -i 's/# deb-src/deb-src/' /etc/apt/sources.list
sudo apt update
- name: Import debian rules
run: |
git remote add debian $(debcheckout -d iproute2 | awk '/url/{print $2;}')
git fetch debian
echo "$(git describe --tags | tr -d 'v')"
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: 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: master-build
files: |
iproute2-l4s.zip