From 99203cbd6f44684c545064148c3dd651f0601f97 Mon Sep 17 00:00:00 2001 From: Georg Auge Date: Fri, 6 Dec 2024 16:59:16 +0100 Subject: [PATCH] Remove sudo from scripts --- .../workflow_scripts/oneapi_cache_exclude_linux.sh | 13 +++++++++++++ .../workflow_scripts/oneapi_setup_apt_repo_linux.sh | 6 +++--- .github/workflows/build.yaml | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflow_scripts/oneapi_cache_exclude_linux.sh b/.github/workflow_scripts/oneapi_cache_exclude_linux.sh index e69de29..0b4a009 100644 --- a/.github/workflow_scripts/oneapi_cache_exclude_linux.sh +++ b/.github/workflow_scripts/oneapi_cache_exclude_linux.sh @@ -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 diff --git a/.github/workflow_scripts/oneapi_setup_apt_repo_linux.sh b/.github/workflow_scripts/oneapi_setup_apt_repo_linux.sh index ab47b08..1e2e1f9 100644 --- a/.github/workflow_scripts/oneapi_setup_apt_repo_linux.sh +++ b/.github/workflow_scripts/oneapi_setup_apt_repo_linux.sh @@ -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" diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6e1d03b..032feac 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -13,7 +13,7 @@ on: - "**.cpp" - "**.hpp" - "CMakeLists.txt" - - ".github/workflows/*.yaml" + - ".github/workflows/**/*" - "build.sh" jobs: