-
Notifications
You must be signed in to change notification settings - Fork 210
49 lines (41 loc) · 1.42 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
name: Build debian package
on:
push:
branches: [ 'master', 'next', 'debian-package' ]
tags:
- build**
- testing-**
jobs:
build-deb:
strategy:
matrix:
os: [ ubuntu-latest ]
distribution: [temurin]
java: [17]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Wrapper validation
uses: gradle/wrapper-validation-action@v1
- name: Setup java
uses: actions/setup-java@v3
with:
cache: 'gradle'
distribution: '${{ matrix.distribution }}'
java-version: '${{ matrix.java }}'
- name: Install dependencies
run: |
sudo apt update
sudo apt install build-essential debhelper devscripts equivs -y
- name: Install package build dependencies
run: |
install_tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes"
sudo mk-build-deps --install -r --tool="${install_tool}" debian/control
- name: Build package
run: |
sudo gbp buildpackage --git-ignore-branch --git-upstream-tag=debian-package -us -uc --git-ignore-new || (EDITOR=true dpkg-source --commit . hack-1 && sudo gbp buildpackage --git-ignore-branch --git-upstream-tag=debian-package -us -uc --git-ignore-new)
- name: Get package info
run: |
dpkg -I ../freenet*.deb
file ../freenet*.deb