Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github-actions: simplify oneAPI setup with external action. #16363

Merged
merged 1 commit into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 6 additions & 28 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,35 +160,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: setup apt repo
run: |
# download the key to system keyring
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
# add signed entry to apt sources and configure the APT client to use Intel repository:
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
- name: collect versioned dependencies of apt packages
run : |
# oneapi-ci/scripts/apt_depends.sh
apt-cache depends intel-oneapi-compiler-dpcpp-cpp \
intel-oneapi-mpi-devel \
intel-oneapi-mkl-devel \
intel-oneapi-tbb-devel | tee dependencies.txt
- name: cache install
id: cache-install
uses: actions/cache@v4
- uses: rscohn2/setup-oneapi@v0
with:
path: /opt/intel/oneapi
key: install-${{ hashFiles('**/dependencies.txt') }}
- name: install
if: steps.cache-install.outputs.cache-hit != 'true'
run: |
# oneapi-ci/scripts/install_linux_apt.sh
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp \
intel-oneapi-mpi-devel \
intel-oneapi-mkl-devel \
intel-oneapi-tbb-devel
sudo apt-get clean
components: |
icx
impi
mkl
tbb
- name: info
run: |
source /opt/intel/oneapi/setvars.sh
Expand Down