@@ -465,6 +465,78 @@ jobs:
465
465
run : cmake --build build --target test_cmake_build
466
466
467
467
468
+ # Testing on ICC using the oneAPI apt repo
469
+ icc :
470
+ runs-on : ubuntu-20.04
471
+ strategy :
472
+ fail-fast : false
473
+
474
+ name : " 🐍 3 • ICC latest • x64"
475
+
476
+ steps :
477
+ - uses : actions/checkout@v1
478
+
479
+ - name : Add apt repo
480
+ run : |
481
+ sudo apt-get update
482
+ sudo apt-get install -y wget build-essential pkg-config cmake ca-certificates gnupg
483
+ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
484
+ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
485
+ echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
486
+
487
+ - name : Add ICC & Python 3
488
+ run : sudo apt-get update; sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic cmake python3-dev python3-numpy python3-pytest python3-pip
489
+
490
+ - name : Update pip
491
+ shell : bash
492
+ run : |
493
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
494
+ python3 -m pip install --upgrade pip
495
+
496
+ - name : Install dependencies
497
+ run : |
498
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
499
+ python3 -m pip install -r tests/requirements.txt --prefer-binary
500
+
501
+ - name : Configure
502
+ shell : bash
503
+ run : |
504
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
505
+ cmake -S . -B build \
506
+ -DPYBIND11_WERROR=ON \
507
+ -DDOWNLOAD_CATCH=ON \
508
+ -DDOWNLOAD_EIGEN=OFF \
509
+ -DCMAKE_CXX_STANDARD=11 \
510
+ -DCMAKE_CXX_COMPILER=$(which icpc) \
511
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
512
+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
513
+
514
+ - name : Build
515
+ shell : bash
516
+ run : |
517
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
518
+ cmake --build build -j 2
519
+
520
+ - name : Python tests
521
+ shell : bash
522
+ run : |
523
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
524
+ sudo service apport stop
525
+ cmake --build build --target check
526
+
527
+ - name : C++ tests
528
+ shell : bash
529
+ run : |
530
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
531
+ cmake --build build --target cpptest
532
+
533
+ - name : Interface test
534
+ shell : bash
535
+ run : |
536
+ set +e; source /opt/intel/oneapi/setvars.sh; set -e
537
+ cmake --build build --target test_cmake_build
538
+
539
+
468
540
# Testing on ICX/ICPX, Intel's next-gen C/C++ compiler using the oneAPI apt repo
469
541
icx :
470
542
runs-on : ubuntu-20.04
@@ -491,6 +563,7 @@ jobs:
491
563
run : |
492
564
set +e; source /opt/intel/oneapi/setvars.sh; set -e
493
565
python3 -m pip install --upgrade pip
566
+
494
567
- name : Install dependencies
495
568
run : |
496
569
set +e; source /opt/intel/oneapi/setvars.sh; set -e
0 commit comments