From 3a1043a4f0fa97daa31f4bd2b3714a07736ac1b6 Mon Sep 17 00:00:00 2001 From: Roshan Khatri <117414976+roshkhatri@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:46:35 -0800 Subject: [PATCH] Fix Valkey binary build workflow, version support changes. (#1429) This change makes the binary build on the target ubuntu version. This PR also deprecated ubuntu18 and valkey will not support: - X86: - Ubuntu 20 - Ubuntu 22 - Ubuntu 24 - ARM: - Ubuntu 20 - Ubuntu 22 Removed ARM ubuntu 24 as the action we are using for ARM builds does not support Ubuntu 24. --------- Signed-off-by: Roshan Khatri --- .../call-build-linux-x86-packages.yml | 2 +- utils/releasetools/build-config.json | 21 +++++++------------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/call-build-linux-x86-packages.yml b/.github/workflows/call-build-linux-x86-packages.yml index a603c53c13..4e68bf85f0 100644 --- a/.github/workflows/call-build-linux-x86-packages.yml +++ b/.github/workflows/call-build-linux-x86-packages.yml @@ -35,7 +35,7 @@ jobs: build-valkey: # Capture source tarball and generate checksum for it name: Build package ${{ matrix.distro.target }} ${{ matrix.distro.arch }} - runs-on: "ubuntu-latest" + runs-on: ${{matrix.distro.target}} strategy: fail-fast: false matrix: ${{ fromJSON(inputs.build_matrix) }} diff --git a/utils/releasetools/build-config.json b/utils/releasetools/build-config.json index 5e39fae70f..f64bf601ca 100644 --- a/utils/releasetools/build-config.json +++ b/utils/releasetools/build-config.json @@ -1,29 +1,24 @@ { "linux_targets": [ + { "arch": "x86_64", - "target": "ubuntu18.04", + "target": "ubuntu-20.04", "type": "deb", - "platform": "bionic" + "platform": "focal" }, { "arch": "x86_64", - "target": "ubuntu20.04", + "target": "ubuntu-22.04", "type": "deb", - "platform": "focal" + "platform": "jammy" }, { "arch": "x86_64", - "target": "ubuntu24.04", + "target": "ubuntu-24.04", "type": "deb", "platform": "noble" }, - { - "arch": "arm64", - "target": "ubuntu18.04", - "type": "deb", - "platform": "bionic" - }, { "arch": "arm64", "target": "ubuntu20.04", @@ -32,9 +27,9 @@ }, { "arch": "arm64", - "target": "ubuntu24.04", + "target": "ubuntu22.04", "type": "deb", - "platform": "noble" + "platform": "jammy" } ] } \ No newline at end of file