From a94eb0d22bcb13ee9798a278e6d0e6364e02bf20 Mon Sep 17 00:00:00 2001 From: guihkx <626206+guihkx@users.noreply.github.com> Date: Tue, 4 Feb 2025 14:42:25 -0300 Subject: [PATCH] chore(ci): Provide a deb package for Ubuntu 24.04 24.04 is a LTS version with official support until June 2029. https://wiki.ubuntu.com/Releases --- .github/workflows/linux.yml | 4 ++++ Dockerfiles/ubuntu-24_04 | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 Dockerfiles/ubuntu-24_04 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 1b382327..03415810 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -22,6 +22,10 @@ jobs: build-script: ubuntu_deb_entrypoint.sh build-type: release + - image: ubuntu-24_04 + build-script: ubuntu_deb_entrypoint.sh + build-type: release + - image: ubuntu-24_10 build-script: ubuntu_deb_entrypoint.sh build-type: release diff --git a/Dockerfiles/ubuntu-24_04 b/Dockerfiles/ubuntu-24_04 new file mode 100644 index 00000000..e1e3a10c --- /dev/null +++ b/Dockerfiles/ubuntu-24_04 @@ -0,0 +1,23 @@ +# vim: set syntax=dockerfile: +FROM ubuntu:24.04 + +LABEL org.opencontainers.image.description="Base image used to build and DEB-package Notes on Ubuntu 24.04" + +# Prevent tzdata from asking for input. +ENV DEBIAN_FRONTEND=noninteractive + +# Install dependencies. +RUN apt-get update && \ + apt-get install -y --no-install-recommends cmake git g++ libgl-dev lintian qt6-base-private-dev qt6-declarative-dev && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists + +# Prevent a fatal error from git: "detected dubious ownership in repository at '/src'". +RUN git config --global --add safe.directory /src + +# Don't forget to mount the current git tree to /src, i.e.: +# docker run -v $(pwd):/src -it --rm ... +WORKDIR /src + +ADD --chmod=755 ./Dockerfiles/ubuntu_deb_entrypoint.sh /usr/bin/entrypoint.sh +ENTRYPOINT ["entrypoint.sh"]