From 5d4fa60710ee3189b00d59538a6449ae27484194 Mon Sep 17 00:00:00 2001 From: Fabio Fantoni Date: Mon, 22 Jan 2024 19:49:03 +0100 Subject: [PATCH 1/2] github build workflow: add udev dep --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0d0ecb5..901f0fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -82,6 +82,7 @@ jobs: libusb-1.0-0-dev \ qtbase5-dev \ pkg-config + apt-get satisfy "systemd-dev (>= 253-2~) | udev (<< 253-2~)" --yes - uses: actions/checkout@v4 - name: Build working-directory: . From d020e5cffe929923c43303551073e634b1260685 Mon Sep 17 00:00:00 2001 From: Fabio Fantoni Date: Mon, 22 Jan 2024 13:55:51 +0100 Subject: [PATCH 2/2] add circleci workflow for test deb packaging this is executed only in debian/latest and circleci must be enabled for this project if want use it --- .circleci/config.yml | 93 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..5f24c59 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,93 @@ +# Use the latest 2.1 version of CircleCI pipeline process engine. +# See: https://circleci.com/docs/2.0/configuration-reference +version: 2.1 + +debian_only: &debian_only + filters: + branches: + only: /debian\/.*/ + +shared: &shared + steps: + - checkout + - run: + name: Prepare environment + command: | + echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections + apt-get update + apt-get dist-upgrade -y + - run: + name: Install dependencies + command: | + apt-get install -y devscripts equivs + mk-build-deps -B --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control + - run: + name: Build packages + working_directory: . + command: dpkg-buildpackage -us -uc -b + - run: + name: Save generate packages as artifacts + working_directory: .. + command: | + mkdir /tmp/artifacts + mv *.deb /tmp/artifacts + - store_artifacts: + path: /tmp/artifacts + +jobs: + debian10: + <<: *shared + docker: + - image: library/debian:buster + debian11: + <<: *shared + docker: + - image: library/debian:bullseye + debian12: + <<: *shared + docker: + - image: library/debian:bookworm + debian13: + <<: *shared + docker: + - image: library/debian:trixie + ubuntu1404: + <<: *shared + docker: + - image: library/ubuntu:trusty + ubuntu1604: + <<: *shared + docker: + - image: library/ubuntu:xenial + ubuntu1804: + <<: *shared + docker: + - image: library/ubuntu:bionic + ubuntu2004: + <<: *shared + docker: + - image: library/ubuntu:focal + ubuntu2204: + <<: *shared + docker: + - image: library/ubuntu:jammy + ubuntu2310: + <<: *shared + docker: + - image: library/ubuntu:mantic + +workflows: + build-deb: + jobs: + - debian11: + <<: *debian_only + - debian12: + <<: *debian_only + - debian13: + <<: *debian_only + - ubuntu2004: + <<: *debian_only + - ubuntu2204: + <<: *debian_only + - ubuntu2310: + <<: *debian_only