-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
85 lines (83 loc) · 2.98 KB
/
.drone.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
75
76
77
78
79
80
81
82
83
84
85
name: kbdscr
kind: pipeline
type: docker
steps:
- name: init
image: gcc:9
commands:
- git fetch --tags
- mkdir build
- echo '*' > build/.gitignore
- name: tarball
image: gcc:9
commands:
- make tarball
- mv *.tar.gz build/
- name: build-run-debian
image: gcc:9
commands:
- apt-get update -qqy
- apt-get install -qqy bash-completion gettext-base git libcairo2-dev libxcb1-dev policykit-1
- make
- make install
- make clean
- kbdscr --help
- name: build-run-fedora
image: fedora:32
commands:
- dnf install --refresh -y bash-completion cairo-devel gettext libxcb-devel make gcc git kernel-devel pkgconf polkit
- make
- make install
- make clean
- kbdscr --help
- name: x-deb-amd64
image: debian:buster
commands:
- dpkg --add-architecture amd64
- apt-get update -qqy
- apt-get install -qqy --no-install-recommends build-essential debhelper devscripts dpkg-dev equivs git lintian
- apt-get install -qqy --no-install-recommends crossbuild-essential-amd64
- mk-build-deps --install --remove --tool "apt-get -qqy --no-install-recommends" --host-arch=amd64
- CONFIG_SITE=/etc/dpkg-cross/cross-config.amd64 DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage --build-profiles=cross,nocheck -b -us -uc -tc --host-arch=amd64
- lintian --check ../kbdscr_*_amd64.deb
- dpkg-deb --info ../kbdscr_*_amd64.deb
- mv ../kbdscr_*_amd64.deb build/
- name: x-deb-i386
image: debian:buster
commands:
- dpkg --add-architecture i386
- apt-get update -qqy
- apt-get install -qqy --no-install-recommends build-essential debhelper devscripts dpkg-dev equivs git lintian
- apt-get install -qqy --no-install-recommends crossbuild-essential-i386
- mk-build-deps --install --remove --tool "apt-get -qqy --no-install-recommends" --host-arch=i386
- CONFIG_SITE=/etc/dpkg-cross/cross-config.i386 DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage --build-profiles=cross,nocheck -b -us -uc -tc --host-arch=i386
- lintian --check ../kbdscr_*_i386.deb
- dpkg-deb --info ../kbdscr_*_i386.deb
- mv ../kbdscr_*_i386.deb build/
- name: x-deb-armhf
image: debian:buster
commands:
- dpkg --add-architecture armhf
- apt-get update -qqy
- apt-get install -qqy --no-install-recommends build-essential debhelper devscripts dpkg-dev equivs git lintian
- apt-get install -qqy --no-install-recommends crossbuild-essential-armhf
- mk-build-deps --install --remove --tool "apt-get -qqy --no-install-recommends" --host-arch=armhf
- CONFIG_SITE=/etc/dpkg-cross/cross-config.armhf DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage --build-profiles=cross,nocheck -b -us -uc -tc --host-arch=armhf
- lintian --check ../kbdscr_*_armhf.deb
- dpkg-deb --info ../kbdscr_*_armhf.deb
- mv ../kbdscr_*_armhf.deb build/
- name: list
image: gcc:9
commands:
- ls -lah build
- name: release
image: plugins/github-release
settings:
api_key: {from_secret: GITHUB_TOKEN}
title: ${DRONE_TAG}
files: build/kbdscr*
draft: true
when: {ref: {include: ["refs/tags/*"]}}
trigger:
event:
exclude: [promote]