diff --git a/.github/workflows/release_tools.yaml b/.github/workflows/release_tools.yaml index 70568ce2b0..e9641ef91c 100644 --- a/.github/workflows/release_tools.yaml +++ b/.github/workflows/release_tools.yaml @@ -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