-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
57 lines (54 loc) · 2.61 KB
/
.appveyor.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
image: ubuntu
version: "{build}"
install:
- docker pull debian:buster
- docker pull ubuntu:bionic
build_script:
- git fetch --tags
- make tarball
- |
cat <<-'EOF' | docker run -v "$APPVEYOR_BUILD_FOLDER:/usr/src/kbdscr" --rm -i --workdir /usr/src/kbdscr debian:buster bash -sxeuo pipefail
dpkg --add-architecture amd64
dpkg --add-architecture i386
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-amd64
apt-get install -qqy --no-install-recommends crossbuild-essential-i386
apt-get install -qqy --no-install-recommends crossbuild-essential-armhf
mk-build-deps --install --tool "apt-get -qqy --no-install-recommends" --host-arch=amd64
mk-build-deps --install --tool "apt-get -qqy --no-install-recommends" --host-arch=i386
mk-build-deps --install --tool "apt-get -qqy --no-install-recommends" --host-arch=armhf
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
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
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_*_amd64.deb
lintian --check ../kbdscr_*_i386.deb
lintian --check ../kbdscr_*_armhf.deb
dpkg-deb --info ../kbdscr_*_amd64.deb
dpkg-deb --info ../kbdscr_*_i386.deb
dpkg-deb --info ../kbdscr_*_armhf.deb
rm -rf debian-buster
mkdir debian-buster
echo '*' > debian-buster/.gitignore
mv *.deb ../kbdscr{-,_}* debian-buster
EOF
- ls -lah debian-buster
- |
cat <<-'EOF' | docker run -v "$APPVEYOR_BUILD_FOLDER:/usr/src/kbdscr" --rm -i --workdir /usr/src/kbdscr ubuntu:bionic bash -sxeuo pipefail
apt-get update -qqy
apt-get install -t bionic-backports -qqy --no-install-recommends build-essential debhelper devscripts dpkg-dev equivs git lintian
mk-build-deps --install --tool "apt-get -qqy --no-install-recommends"
dpkg-buildpackage -b -us -uc -tc
lintian --check ../kbdscr_*_amd64.deb
dpkg-deb --info ../kbdscr_*_amd64.deb
rm -rf ubuntu-bionic
mkdir ubuntu-bionic
echo '*' > ubuntu-bionic/.gitignore
mv *.deb ../kbdscr{-,_}* ubuntu-bionic
EOF
- ls -lah ubuntu-bionic
artifacts:
- path: kbdscr-*.tar.gz
- path: debian-buster/kbdscr*
- path: ubuntu-bionic/kbdscr*