Skip to content

Commit 2b8c433

Browse files
committed
ci: add the Intel apt key without apt-key
apt-key is no longer on the ubuntu-latest image. Dearmor the key into /usr/share/keyrings and reference it with signed-by, as dpnp and dpctl do.
1 parent c2eb806 commit 2b8c433

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/build-with-clang.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ jobs:
3333

3434
- name: Add Intel repository
3535
run: |
36-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
37-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
38-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
39-
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
36+
wget -qO- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
37+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
38+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" \
39+
| sudo tee /etc/apt/sources.list.d/oneAPI.list
4040
sudo apt-get update
4141
4242
- name: Install Intel oneAPI

0 commit comments

Comments
 (0)