Skip to content

Commit

Permalink
CI: Update ubuntu-20.04 runners to ubuntu-22.04
Browse files Browse the repository at this point in the history
The Ubuntu-20.04 brownout takes place from 2025-02-01. For more details, see actions/runner-images#11101

cuda-toolkit-11-1 unavailable on ubuntu-22.04
  • Loading branch information
samuel-jimenez committed Mar 7, 2025
1 parent f89b7a1 commit c68c346
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,27 +65,20 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
# Oldest tested CUDA Toolkit version. Older CTKs might work, but they're
# difficult to test without Ubuntu18.04 GHA runners or containerized jobs.
cuda: "11.1"
extra_desc: cuda11.1
# Oldest supported version, keep in sync with README.md
rustc: "1.75.0"
- os: ubuntu-22.04
# Oldest supported version, keep in sync with README.md
rustc: "1.75.0"
extra_desc: dist-server
extra_args: --no-default-features --features=dist-tests test_dist_ -- --test-threads 1
- os: ubuntu-20.04
- os: ubuntu-22.04
rustc: stable
- os: ubuntu-20.04
- os: ubuntu-22.04
rustc: beta
- os: ubuntu-20.04
- os: ubuntu-22.04
rustc: nightly
allow_failure: true
extra_args: --features=unstable
- os: ubuntu-20.04
- os: ubuntu-22.04
extra_desc: no-default-features
extra_args: --no-default-features
allow_failure: true
Expand Down Expand Up @@ -156,14 +149,7 @@ jobs:
sudo apt remove -y gcc-14 g++-14
sudo apt autoremove -y
fi
# Ubuntu20.04's clang-10 is too old for CTK 11+, so install clang-12 instead
if test "${{ matrix.os }}" = "ubuntu-20.04" && test -n "${{ matrix.cuda }}"; then
sudo apt install -y --no-install-recommends gcc clang-12
sudo ln -sf $(which clang-12) /usr/bin/clang
sudo ln -sf $(which clang++-12) /usr/bin/clang++
else
sudo apt install -y --no-install-recommends gcc clang
fi
sudo apt install -y --no-install-recommends gcc clang
echo 'gcc version:'
gcc --version
echo 'clang version:'
Expand Down Expand Up @@ -196,21 +182,21 @@ jobs:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
- os: ubuntu-22.04
target: x86_64-unknown-linux-musl
container: '{"image": "messense/rust-musl-cross:x86_64-musl"}'
- os: ubuntu-20.04
- os: ubuntu-22.04
binary: sccache-dist
extra_args: --no-default-features --features="dist-server"
target: x86_64-unknown-linux-musl
container: '{"image": "messense/rust-musl-cross:x86_64-musl"}'
- os: ubuntu-20.04
- os: ubuntu-22.04
target: aarch64-unknown-linux-musl
container: '{"image": "messense/rust-musl-cross:aarch64-musl"}'
- os: ubuntu-20.04
- os: ubuntu-22.04
target: armv7-unknown-linux-musleabi
container: '{"image": "messense/rust-musl-cross:armv7-musleabi"}'
- os: ubuntu-20.04
- os: ubuntu-22.04
target: i686-unknown-linux-musl
container: '{"image": "messense/rust-musl-cross:i686-musl"}'
- os: macos-13
Expand Down

0 comments on commit c68c346

Please sign in to comment.