From 64932a2357a086234f4a57161a519720cbd09436 Mon Sep 17 00:00:00 2001
From: filipecosta90 <filipecosta.90@gmail.com>
Date: Sun, 24 Nov 2024 20:42:54 +0000
Subject: [PATCH] Add 24.04 to the build checks

---
 .github/workflows/ci.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9195523..b5c5b3d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -21,7 +21,7 @@ jobs:
   build-ubuntu:
     strategy:
       matrix:
-        platform: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-latest]
+        platform: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04, ubuntu-24.04, ubuntu-latest]
     name: Build ${{ matrix.platform }}
     env:
       # https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
@@ -32,7 +32,14 @@ jobs:
     - name: Install dependencies
       run: |
         sudo apt-get -qq update
-        sudo apt-get install lcov autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
+        sudo apt-get install autoconf automake pkg-config libevent-dev libpcre3-dev libssl-dev
+
+    # Install lcov only on ubuntu-latest
+    - name: Install lcov
+      if: matrix.platform == 'ubuntu-latest'
+      run: |
+        sudo apt-get install -y lcov
+        lcov --version  # Confirm version
 
     - name: Build
       run: autoreconf -ivf && ./configure --enable-code-coverage && make -j