From 4f801818965bcd204aa9266c07e036afe4bdbda1 Mon Sep 17 00:00:00 2001 From: Kamil Kasperczyk Date: Wed, 18 Dec 2024 15:16:45 +0100 Subject: [PATCH] [nrf noup] Fix release tools workflow Bumped chip-build version that became obsolete and leads to bootstrap crash due to too old python version. Replace missing lsb_release. Signed-off-by: Kamil Kasperczyk Co-authored-by: Adrian Gielniewski --- .github/workflows/release_tools.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_tools.yaml b/.github/workflows/release_tools.yaml index a131dc952b..e9641ef91c 100644 --- a/.github/workflows/release_tools.yaml +++ b/.github/workflows/release_tools.yaml @@ -36,7 +36,7 @@ jobs: DEBIAN_FRONTEND: noninteractive container: - image: ghcr.io/project-chip/chip-build:41 + image: ghcr.io/project-chip/chip-build:81 volumes: - "/tmp/log_output:/tmp/test_logs" - "/tmp/output_binaries:/tmp/output_binaries" @@ -54,8 +54,9 @@ jobs: - name: Install CHIP Tool dependencies timeout-minutes: 10 run: | - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc) main restricted" > /etc/apt/sources.list.d/arm64.list - echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc)-updates main restricted" >> /etc/apt/sources.list.d/arm64.list + export CODENAME=$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d= -f2) + echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${CODENAME} main restricted" > /etc/apt/sources.list.d/arm64.list + echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${CODENAME}-updates main restricted" >> /etc/apt/sources.list.d/arm64.list apt update apt install -y --no-install-recommends -o APT::Immediate-Configure=false g++-aarch64-linux-gnu libgirepository1.0-dev dpkg --add-architecture arm64