-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (45 loc) · 1.55 KB
/
build-ppa-package-with-lintian.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
name: Build Project (Debian Package, Lintian)
on:
push:
branches: [ "main", "v0.1.1.x-saas" ]
pull_request:
branches: [ "main", "v0.1.1.x-saas" ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install required packages
run: |
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo apt autoremove dotnet*
sudo apt update
sudo NEEDRESTART_SUSPEND=1 apt install curl locales-all libunwind8-dev libcurl4-openssl-dev dotnet-sdk-8.0 libjack0 libportaudio2 libopenal1 libsdl2-2.0-0 libpulse0 libaudio2 devscripts debhelper-compat dput build-essential
- name: Initialize offline package
run: |
chmod +x tools/initializeoffline.sh
make debian-init-offline
make clean
- name: Make original package
run: |
mv debian ..
mv .github ..
tar cfv ../nitrocid-27_3.0.27.0-0.1.2.0.orig.tar .
xz ../nitrocid-27_3.0.27.0-0.1.2.0.orig.tar
mv ../debian .
- name: Build package
run: |
debuild -us -uc
cp ../*.deb .
- name: Upload package to artifacts
uses: actions/upload-artifact@v4
with:
name: Nitrocid-KS-Debian-Package
path: "*.deb"