Skip to content

Commit b2a2f20

Browse files
Update CI pipeline from Ubuntu 20.04 (EOL) to Ubuntu 26.04 (#1552)
* Update CI pipeline from Ubuntu 20.04 (EOL) to Ubuntu 26.04 Replace Ubuntu 20.04 container image and apt sources with Ubuntu 26.04: - Container image: prereqs:ubuntu-20.04-* -> prereqs:ubuntu-26.04 - MS packages apt source: ubuntu/20.04 -> ubuntu/26.04 - Kitware apt source: focal -> resolute Fixes #1551 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix CI: use Ubuntu 24.04 (Noble) instead of non-existent 26.04 - Docker image tag ubuntu-26.04 does not exist in MCR, use ubuntu-24.04 - Kitware apt codename resolute is invalid, use noble (24.04 LTS) - Microsoft packages URL ubuntu/26.04 does not exist, use 24.04 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 5782540 commit b2a2f20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ variables:
2929
sudo apt-get -y update
3030
sudo apt-get -y install clang git libunwind8 curl libomp-dev libomp5 wget gpg
3131
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null
32-
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | sudo tee /etc/apt/sources.list.d/kitware.list
32+
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | sudo tee /etc/apt/sources.list.d/kitware.list
3333
sudo apt-get -y update
3434
sudo apt-get -y install cmake
3535
cmake --version
36-
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
36+
wget https://packages.microsoft.com/config/ubuntu/24.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
3737
sudo dpkg --purge packages-microsoft-prod && sudo dpkg -i packages-microsoft-prod.deb
3838
sudo apt-get update; sudo apt-get install -y apt-transport-https && sudo apt-get update
3939
ldd --version && (/sbin/ldconfig -p | grep stdc++) && (strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep LIBCXX)
@@ -46,7 +46,7 @@ resources:
4646
# https://github.com/dotnet/versions/blob/main/build-info/docker/image-info.dotnet-dotnet-buildtools-prereqs-docker-main.json
4747

4848
- container: UbuntuContainer
49-
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-20.04-20240708213715-dcf0bb9
49+
image: mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-24.04
5050

5151
jobs:
5252
- template: /build/ci/job-template.yml

0 commit comments

Comments
 (0)