-
-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update
libtinfo5
installation for Ubuntu 24.04
As per actions/runner-images#10636 `ubuntu-latest` is now Ubuntu 24.04 instead of 22.04 which [does not] have `libtinfo5` in the default PPAs [does not]: https://packages.ubuntu.com/search?keywords=libtinfo Unfortunately all of the LLVM binary releases still for Ubuntu still target 18.04 and contain binaries linked against `libtinfo5` — bumping the version of LLVM we use in our tests' toolchains will not solve this problem. Pinning CI to use Ubuntu 22.04 is an option; however this PR installs `libtinfo5` on the Ubuntu 24.04 runners manually instead.
- Loading branch information
Showing
2 changed files
with
22 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Ubuntu 24.04 does not have libtinfo5 in its PPAs: | ||
# | ||
# However, the LLVM binary releases hosted up upstream still target Ubuntu 18.04 | ||
# as of this writing and contain binaries linked against `libtinfo5`. | ||
# | ||
# This script installs `libtinfo5` using the `.deb` from Ubuntu 22.04's PPAs: | ||
# https://packages.ubuntu.com/jammy-updates/amd64/libtinfo5/download | ||
|
||
set -euo pipefail | ||
|
||
readonly pkg="$(mktemp --suffix=.deb)" | ||
trap EXIT 'rm -f "$pkg"' | ||
|
||
curl -L https://mirrors.kernel.org/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb -o "$pkg" | ||
dpkg -i "$pkg" | ||
|