@@ -373,53 +373,53 @@ jobs:
373
373
# run: cmake --build build --target test_cmake_build
374
374
375
375
376
- # # Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
377
- # centos-nvhpc7:
378
- # runs-on: ubuntu-latest
379
- # name: "🐍 3 • CentOS7 / PGI 20.9 • x64"
380
- # container: centos:7
381
- #
382
- # steps:
383
- # - uses: actions/checkout@v2
384
- #
385
- # - name: Add Python 3 and a few requirements
386
- # run: yum update -y && yum install -y epel-release && yum install -y git python3-devel make environment-modules cmake3
387
- #
388
- # - name: Install NVidia HPC SDK
389
- # run: yum -y install https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-20-9-20.9-1.x86_64.rpm https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-2020-20.9-1.x86_64.rpm
390
- #
391
- # # On CentOS 7, we have to filter a few tests (compiler internal error)
392
- # # and allow deeper template recursion (not needed on CentOS 8 with a newer
393
- # # standard library). On some systems, you many need further workarounds:
394
- # # https://github.com/pybind/pybind11/pull/2475
395
- # - name: Configure
396
- # shell: bash
397
- # run: |
398
- # source /etc/profile.d/modules.sh
399
- # module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.9
400
- # cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
401
- # -DCMAKE_CXX_STANDARD=11 \
402
- # -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
403
- # -DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
404
- # -DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp"
405
- #
406
- # # Building before installing Pip should produce a warning but not an error
407
- # - name: Build
408
- # run: cmake3 --build build -j 2 --verbose
409
- #
410
- # - name: Install CMake with pip
411
- # run: |
412
- # python3 -m pip install --upgrade pip
413
- # python3 -m pip install pytest
414
- #
415
- # - name: Python tests
416
- # run: cmake3 --build build --target pytest
417
- #
418
- # - name: C++ tests
419
- # run: cmake3 --build build --target cpptest
420
- #
421
- # - name: Interface test
422
- # run: cmake3 --build build --target test_cmake_build
376
+ # Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
377
+ centos-nvhpc7 :
378
+ runs-on : ubuntu-latest
379
+ name : " 🐍 3 • CentOS7 / PGI 20.9 • x64"
380
+ container : centos:7
381
+
382
+ steps :
383
+ - uses : actions/checkout@v2
384
+
385
+ - name : Add Python 3 and a few requirements
386
+ run : yum update -y && yum install -y epel-release && yum install -y git python3-devel make environment-modules cmake3
387
+
388
+ - name : Install NVidia HPC SDK
389
+ run : yum -y install https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-20-9-20.9-1.x86_64.rpm https://developer.download.nvidia.com/hpc-sdk/20.9/nvhpc-2020-20.9-1.x86_64.rpm
390
+
391
+ # On CentOS 7, we have to filter a few tests (compiler internal error)
392
+ # and allow deeper template recursion (not needed on CentOS 8 with a newer
393
+ # standard library). On some systems, you many need further workarounds:
394
+ # https://github.com/pybind/pybind11/pull/2475
395
+ - name : Configure
396
+ shell : bash
397
+ run : |
398
+ source /etc/profile.d/modules.sh
399
+ module load /opt/nvidia/hpc_sdk/modulefiles/nvhpc/20.9
400
+ cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
401
+ -DCMAKE_CXX_STANDARD=11 \
402
+ -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
403
+ -DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
404
+ -DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp"
405
+
406
+ # Building before installing Pip should produce a warning but not an error
407
+ - name : Build
408
+ run : cmake3 --build build -j 2 --verbose
409
+
410
+ - name : Install CMake with pip
411
+ run : |
412
+ python3 -m pip install --upgrade pip
413
+ python3 -m pip install pytest
414
+
415
+ - name : Python tests
416
+ run : cmake3 --build build --target pytest
417
+
418
+ - name : C++ tests
419
+ run : cmake3 --build build --target cpptest
420
+
421
+ - name : Interface test
422
+ run : cmake3 --build build --target test_cmake_build
423
423
424
424
425
425
# Testing on GCC using the GCC docker images (only recent images supported)
0 commit comments