-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (73 loc) · 3.46 KB
/
package-debian.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
66
67
68
69
70
71
72
73
74
on:
workflow_dispatch:
inputs:
silkit_source_url:
description: 'URL to the libsilkit source code tarball'
required: true
type: string
silkit_pkg_url:
description: 'URL to the repo with the SIL Kit packaging sources'
required: true
default: '.'
type: string
silkit_ref:
description: 'Commit ref of the repo with the SIL Kit packaging sources. Choose carefully'
required: false
type: string
default: ''
debian_fullname:
description: 'Name of the maintainer creating the current package'
required: true
type: string
debian_email:
description: 'Email of the maintainer creating the current package'
required: true
type: string
debian_arch:
description: 'Revision of the package to be build'
required: true
default: 'amd64'
type: string
jobs:
package_debian:
runs-on: ubuntu-latest
name: Job to build debian packages
container:
image: ghcr.io/mariusbgm/sil-kit-ci-ubuntu-20.04:main
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Install build dependencies
run: sudo apt install -y debhelper dpkg-dev devscripts dh-make
- name: Install cmake
run: |
sh ./.github/actions/fetch_cmake.sh
- name: Build
id: build
env:
SILKIT_SOURCE_URL: ${{ inputs.silkit_source_url }}
SILKIT_REVISION: ${{ inputs.silkit_ref }}
SILKIT_PKG_URL: ${{ inputs.silkit_pkg_url }}
DEBFULLNAME: ${{ inputs.debian_fullname }}
DEBEMAIL: ${{ inputs.debian_fullname }}
CI_RUN: "1"
run: |
sh ./.github/actions/build_deb.sh 20.04
- name: Artifact
uses: actions/upload-artifact@v4
with:
name: libsilkit4_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}
path: |
./libsilkit4_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.deb
./libsilkit4_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.deb
./libsilkit-dev_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.deb
./silkit-utils_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.deb
./libsilkit4-dbgsym_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.deb
./libsilkit_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}.dsc
./libsilkit_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}.debian.tar.xz
./libsilkit_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.build
./libsilkit_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.buildinfo
./libsilkit_${{ steps.build.outputs.silkit_version }}-${{ steps.build.outputs.silkit_debian_revision }}_${{ inputs.debian_arch }}.changes
retention-days: 1