Skip to content

Commit 1f41933

Browse files
committed
Try to install intel compiler?
1 parent 3b23b93 commit 1f41933

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,39 @@ jobs:
1212
matrix:
1313
include:
1414
- os: ubuntu-24.04
15-
compiler:
15+
packages:
1616
cc: gcc
1717
cxx: g++
1818

1919
- os: ubuntu-24.04
20-
compiler: clang
20+
packages: clang
2121
cc: clang
2222
cxx: clang++
2323

24+
- os: ubuntu-24.04
25+
packages: intel-oneapi-compiler-dpcpp-cp
26+
cc: icx
27+
cxx: icpx
28+
2429
name: |
25-
${{ matrix.os }}
30+
${{ matrix.os }} ${{ matrix.cc }}
2631
2732
runs-on: ${{ matrix.os }}
2833

2934
steps:
3035
- name: Check out project
31-
uses: actions/checkout@v4
36+
uses: actions/checkout@v5
37+
38+
- uses: gerlero/add-apt-repository@v1
39+
if: startsWith(matrix.packages, 'intel')
40+
with:
41+
uri: https://apt.repos.intel.com/oneapi all main
42+
key: https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
43+
suite: all
3244

3345
- name: Install APT dependencies
3446
run: |
35-
sudo apt-get install libmpfr-dev libeigen3-dev catch2 ${{ matrix.compiler }}
47+
sudo apt-get install libmpfr-dev libeigen3-dev catch2 ${{ matrix.packages }}
3648
3749
- name: CMake configure and build
3850
uses: threeal/[email protected]
@@ -63,7 +75,7 @@ jobs:
6375

6476
steps:
6577
- name: Check out project
66-
uses: actions/checkout@v4
78+
uses: actions/checkout@v5
6779

6880
- name: Install dependencies with brew
6981
run: |
@@ -96,7 +108,7 @@ jobs:
96108

97109
steps:
98110
- name: Check out project
99-
uses: actions/checkout@v4
111+
uses: actions/checkout@v5
100112

101113
- name: CMake configure and build
102114
uses: threeal/[email protected]

0 commit comments

Comments
 (0)