| 1 |
|
| 2 |
|
| 3 |
version: 2.1 |
| 4 |
|
| 5 |
debian_only: &debian_only |
| 6 |
filters: |
| 7 |
branches: |
| 8 |
only: /debian\/.*/ |
| 9 |
|
| 10 |
shared: &shared |
| 11 |
steps: |
| 12 |
- checkout |
| 13 |
- run: |
| 14 |
name: Prepare environment |
| 15 |
command: | |
| 16 |
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections |
| 17 |
apt-get update |
| 18 |
apt-get dist-upgrade -y |
| 19 |
- run: |
| 20 |
name: Install dependencies |
| 21 |
command: | |
| 22 |
apt-get install -y devscripts equivs |
| 23 |
mk-build-deps -B --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control |
| 24 |
- run: |
| 25 |
name: Build packages |
| 26 |
working_directory: . |
| 27 |
command: dpkg-buildpackage -us -uc -b |
| 28 |
- run: |
| 29 |
name: Save generate packages as artifacts |
| 30 |
working_directory: .. |
| 31 |
command: | |
| 32 |
mkdir /tmp/artifacts |
| 33 |
mv *.deb /tmp/artifacts |
| 34 |
- store_artifacts: |
| 35 |
path: /tmp/artifacts |
| 36 |
|
| 37 |
jobs: |
| 38 |
debian10: |
| 39 |
<<: *shared |
| 40 |
docker: |
| 41 |
- image: library/debian:buster |
| 42 |
debian11: |
| 43 |
<<: *shared |
| 44 |
docker: |
| 45 |
- image: library/debian:bullseye |
| 46 |
debian12: |
| 47 |
<<: *shared |
| 48 |
docker: |
| 49 |
- image: library/debian:bookworm |
| 50 |
debian13: |
| 51 |
<<: *shared |
| 52 |
docker: |
| 53 |
- image: library/debian:trixie |
| 54 |
ubuntu2204: |
| 55 |
<<: *shared |
| 56 |
docker: |
| 57 |
- image: library/ubuntu:jammy |
| 58 |
ubuntu2404: |
| 59 |
<<: *shared |
| 60 |
docker: |
| 61 |
- image: library/ubuntu:noble |
| 62 |
ubuntu2310: |
| 63 |
<<: *shared |
| 64 |
docker: |
| 65 |
- image: library/ubuntu:mantic |
| 66 |
|
| 67 |
workflows: |
| 68 |
build-deb: |
| 69 |
jobs: |
| 70 |
- debian11: |
| 71 |
<<: *debian_only |
| 72 |
- debian12: |
| 73 |
<<: *debian_only |
| 74 |
- debian13: |
| 75 |
<<: *debian_only |
| 76 |
- ubuntu2004: |
| 77 |
<<: *debian_only |
| 78 |
- ubuntu2204: |
| 79 |
<<: *debian_only |
| 80 |
- ubuntu2404: |
| 81 |
<<: *debian_only |
| 82 |
- ubuntu2310: |
| 83 |
<<: *debian_only |