@@ -35,10 +35,10 @@ jobs:
3535 if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
3636 run : |
3737 sudo apt-get install doxygen
38- - name : Install CMake
38+ - name : Install CMake and Ninja
3939 if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
4040 run : |
41- sudo apt-get install cmake
41+ sudo apt-get install cmake ninja-build
4242 - name : Setup Python
4343 if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
4444 uses : actions/setup-python@v2
@@ -55,31 +55,28 @@ jobs:
5555 with :
5656 fetch-depth : 0
5757 persist-credentials : false
58- - name : Build dpctl
59- if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
60- shell : bash -l {0}
61- run : |
62- source /opt/intel/oneapi/setvars.sh
63- python setup.py develop -- -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON -DDPCTL_DPCPP_HOME_DIR=${BUILD_PREFIX}
64- python -c "import dpctl; print(dpctl.__version__)" || exit 1
65- - name : Build docs
58+ - name : Build dpctl+docs
6659 if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
6760 shell : bash -l {0}
6861 run : |
6962 # Ensure that SYCL libraries are on LD_LIBRARY_PATH
7063 source /opt/intel/oneapi/setvars.sh
71- cd docs
72- mkdir -p build && cd build && rm -rf *
7364 wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
7465 tar xf doxyrest-2.1.2-linux-amd64.tar.xz
75- cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON \
76- -DDPCTL_ENABLE_DOXYREST=ON \
77- -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
78- make Sphinx || exit 1
79- cd ..
80- mv generated_docs/docs ~/docs
66+ python setup.py develop -- \
67+ -G "Ninja" \
68+ -DCMAKE_BUILD_TYPE=Debug \
69+ -DCMAKE_C_COMPILER:PATH=icx \
70+ -DCMAKE_CXX_COMPILER:PATH=icpx \
71+ -DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON \
72+ -DDPCTL_GENERATE_DOCS=ON \
73+ -DDPCTL_ENABLE_DOXYREST=ON \
74+ -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
75+ python -c "import dpctl; print(dpctl.__version__)" || exit 1
76+ cd "$(find _skbuild -name cmake-build)" || exit 1
77+ cmake --build . --target Sphinx || exit 1
78+ mv ../cmake-install/docs/docs ~/docs
8179 git clean -dfx
82- cd ..
8380 - name : Publish docs
8481 if : ${{ github.ref == 'refs/heads/master' }}
8582 shell : bash -l {0}
0 commit comments