Skip to content

Commit b0cd26a

Browse files
committed
Add Intel C++ Compiler (ICX) to CI matrix for comprehensive compiler testing
1 parent 288f0e3 commit b0cd26a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
compiler: clang
2323
cc: clang
2424
cxx: clang++
25+
- os: ubuntu-latest
26+
compiler: intel-icx
27+
cc: icx
28+
cxx: icpx
2529
- os: windows-latest
2630
compiler: msvc
2731
- os: macos-latest
@@ -30,6 +34,18 @@ jobs:
3034
steps:
3135
- uses: actions/checkout@v4
3236

37+
- name: Install Intel oneAPI (Linux)
38+
if: matrix.compiler == 'intel-icx' && runner.os == 'Linux'
39+
run: |
40+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
41+
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
42+
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
43+
sudo apt-get update
44+
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
45+
source /opt/intel/oneapi/setvars.sh
46+
echo "CC=icx" >> $GITHUB_ENV
47+
echo "CXX=icpx" >> $GITHUB_ENV
48+
3349
- name: Configure CMake
3450
run: >
3551
cmake -B build

0 commit comments

Comments
 (0)