Skip to content

Commit 2340e0a

Browse files
[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 <kamil.kasperczyk@nordicsemi.no> Co-authored-by: Adrian Gielniewski <adrian.gielniewski@nordicsemi.no>
1 parent d218a95 commit 2340e0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release_tools.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
DEBIAN_FRONTEND: noninteractive
3737

3838
container:
39-
image: ghcr.io/project-chip/chip-build:41
39+
image: ghcr.io/project-chip/chip-build:81
4040
volumes:
4141
- "/tmp/log_output:/tmp/test_logs"
4242
- "/tmp/output_binaries:/tmp/output_binaries"
@@ -54,8 +54,9 @@ jobs:
5454
- name: Install CHIP Tool dependencies
5555
timeout-minutes: 10
5656
run: |
57-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc) main restricted" > /etc/apt/sources.list.d/arm64.list
58-
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports $(lsb_release -sc)-updates main restricted" >> /etc/apt/sources.list.d/arm64.list
57+
export CODENAME=$(cat /etc/os-release | grep UBUNTU_CODENAME | cut -d= -f2)
58+
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${CODENAME} main restricted" > /etc/apt/sources.list.d/arm64.list
59+
echo "deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports ${CODENAME}-updates main restricted" >> /etc/apt/sources.list.d/arm64.list
5960
apt update
6061
apt install -y --no-install-recommends -o APT::Immediate-Configure=false g++-aarch64-linux-gnu libgirepository1.0-dev
6162
dpkg --add-architecture arm64

0 commit comments

Comments
 (0)