Skip to content

Commit

Permalink
Remove sudo from scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gwauge committed Dec 6, 2024
1 parent 2d763f3 commit 99203cb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .github/workflow_scripts/oneapi_cache_exclude_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# SPDX-FileCopyrightText: 2020 Intel Corporation
#
# SPDX-License-Identifier: MIT

#shellcheck disable=SC2010
LATEST_VERSION=$(ls -1 /opt/intel/oneapi/compiler/ | grep -v latest | sort | tail -1)

rm -rf /opt/intel/oneapi/compiler/"$LATEST_VERSION"/linux/compiler/lib/ia32_lin
rm -rf /opt/intel/oneapi/compiler/"$LATEST_VERSION"/linux/bin/ia32
rm -rf /opt/intel/oneapi/compiler/"$LATEST_VERSION"/linux/lib/emu
rm -rf /opt/intel/oneapi/compiler/"$LATEST_VERSION"/linux/lib/oclfpga
6 changes: 3 additions & 3 deletions .github/workflow_scripts/oneapi_setup_apt_repo_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
# SPDX-License-Identifier: MIT

wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0"
apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
apt-get update -o Dir::Etc::sourcelist="sources.list.d/oneAPI.list" -o APT::Get::List-Cleanup="0"
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- "**.cpp"
- "**.hpp"
- "CMakeLists.txt"
- ".github/workflows/*.yaml"
- ".github/workflows/**/*"
- "build.sh"

jobs:
Expand Down

0 comments on commit 99203cb

Please sign in to comment.