Skip to content

Commit a623c75

Browse files
committed
gpg key
1 parent 151ab22 commit a623c75

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.ci/setup.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ sudo apt-get update
2323
echo "Setting up LLVM 17 APT source with modern GPG key handling..."
2424

2525
# Download and install GPG key to /usr/share/keyrings
26-
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/llvm-archive-keyring.gpg
26+
curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \
27+
gpg --dearmor | sudo tee /usr/share/keyrings/llvm-archive-keyring.gpg > /dev/null
28+
29+
# Make sure key file is readable by _apt
30+
sudo chmod a+r /usr/share/keyrings/llvm-archive-keyring.gpg
2731

2832
# Write APT source list, explicitly binding keyring file
29-
echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-17.list
33+
echo "deb [signed-by=/usr/share/keyrings/llvm-archive-keyring.gpg] http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" | \
34+
sudo tee /etc/apt/sources.list.d/llvm-toolchain-jammy-17.list
3035

3136
# Update package lists
3237
sudo apt-get update

0 commit comments

Comments
 (0)