mirror of
https://github.com/systemd/systemd
synced 2024-07-22 02:34:54 +00:00
ci: Use apt-get in favor of apt
Apparently, apt does not have a stable CLI interface and warns about it.
This commit is contained in:
parent
592ee08f3b
commit
051ec23ce2
4
.github/workflows/build_test.sh
vendored
4
.github/workflows/build_test.sh
vendored
|
@ -77,7 +77,7 @@ if [[ "$COMPILER" == clang ]]; then
|
|||
AR="llvm-ar-$COMPILER_VERSION"
|
||||
|
||||
# Prefer the distro version if available
|
||||
if ! apt install --dry-run "llvm-$COMPILER_VERSION" >/dev/null; then
|
||||
if ! apt-get -y install --dry-run "llvm-$COMPILER_VERSION" >/dev/null; then
|
||||
# Latest LLVM stack deb packages provided by https://apt.llvm.org/
|
||||
# Following snippet was partly borrowed from https://apt.llvm.org/llvm.sh
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --yes --dearmor --output /usr/share/keyrings/apt-llvm-org.gpg
|
||||
|
@ -91,7 +91,7 @@ elif [[ "$COMPILER" == gcc ]]; then
|
|||
CXX="g++-$COMPILER_VERSION"
|
||||
AR="gcc-ar-$COMPILER_VERSION"
|
||||
|
||||
if ! apt install --dry-run "gcc-$COMPILER_VERSION" >/dev/null; then
|
||||
if ! apt-get -y install --dry-run "gcc-$COMPILER_VERSION" >/dev/null; then
|
||||
# Latest gcc stack deb packages provided by
|
||||
# https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test
|
||||
add-apt-repository -y --no-update ppa:ubuntu-toolchain-r/test
|
||||
|
|
Loading…
Reference in a new issue