forked from kupiqu/SierraBreezeEnhanced
-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (55 loc) · 1.87 KB
/
build-deb-amd64.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
name: Nitrux Windeco Deb
on:
workflow_dispatch:
inputs:
latteBranch:
description: 'Nitrux Windeco Branch'
required: true
type: string
packageCloudRepo:
description: 'Package Cloud Repo'
required: true
default: 'testing'
type: choice
options:
- repo
- testing
- compat
packageVersion:
description: 'Package Version'
required: true
type: string
jobs:
build-deb:
runs-on: ubuntu-20.04
container:
image: ubuntu:jammy
env:
DEBIAN_FRONTEND: noninteractive
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
steps:
- name: Install basic packages
run: apt-get update -q && apt-get -qy install sudo && apt-get -qy install curl wget gnupg python3-pip patchelf build-essential ruby-full
- name: Install package cloud
run: gem install package_cloud
- name: Add required repo list
run: |
sudo touch /etc/apt/sources.list.d/neon.list
echo "deb http://archive.neon.kde.org/user focal main" | sudo tee -a /etc/apt/sources.list.d/neon.list
curl 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE6D4736255751E5D' | sudo apt-key add -
- uses: actions/checkout@v2
- name: Install build dependencies
run: ./scripts/install-build-deps.sh
- name: Generate deb
run: ./scripts/build-deb.sh
env:
PACKAGE_VERSION: ${{ inputs.packageVersion }}
LATTE_BRANCH: ${{ inputs.latteBranch }}
- name: 'Upload Artifact'
uses: actions/upload-artifact@v3
with:
name: deb-package
path: ./build/*.deb
retention-days: 1
- name: Upload package to Package Cloud
run: package_cloud push nitrux/${{ inputs.packageCloudRepo }}/debian/trixie ./build/*.deb