Skip to content

Commit f3019f9

Browse files
authored
Merge pull request #226 from CaNS-World/setup-intel-ci
Use public action to setup Intel oneapi.
2 parents eed9441 + eb51e1b commit f3019f9

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/actions/build/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ inputs:
1717
runs:
1818
using: "composite"
1919
steps:
20+
- name: Set up Intel oneAPI
21+
if: ${{ inputs.compiler == 'INTEL' }}
22+
uses: rscohn2/setup-oneapi@v0
23+
with:
24+
components: |
25+
ifx
26+
impi
27+
2028
- name: Install compiler
2129
shell: bash
2230
run: |
Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
#!/bin/sh
22
#
3-
# installs Intel compiler (`ifx`) and MPI library, and sets up the build environment
4-
# see: https://www.intel.com/content/www/us/en/docs/oneapi/installation-guide-linux/2023-0/apt.html
3+
# installs additional Ubuntu packages needed by the Intel build
54
#
65
# get packages
76
#
8-
sudo apt-get install libfftw3-dev
9-
#
10-
# download the key to system keyring
11-
#
12-
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
13-
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
14-
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
15-
sudo apt-get update
16-
sudo apt-get install intel-hpckit
17-
sudo apt-get install intel-fortran-essentials
7+
sudo apt-get install -y --no-install-recommends libfftw3-dev

.github/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ updates:
99
- dependency-name: "dependencies/cuDecomp"
1010
- dependency-name: "dependencies/diezDecomp"
1111
- package-ecosystem: github-actions
12-
directory: "/"
12+
directories:
13+
- "/"
14+
- "/.github/actions/build"
1315
schedule:
1416
interval: weekly
1517
groups:

0 commit comments

Comments
 (0)