@@ -55,31 +55,28 @@ jobs:
55
55
with :
56
56
fetch-depth : 0
57
57
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
66
59
if : ${{ !github.event.pull_request || github.event.action != 'closed' }}
67
60
shell : bash -l {0}
68
61
run : |
69
62
# Ensure that SYCL libraries are on LD_LIBRARY_PATH
70
63
source /opt/intel/oneapi/setvars.sh
71
- cd docs
72
- mkdir -p build && cd build && rm -rf *
73
64
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
74
65
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 "Unix Makefiles" \
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
81
79
git clean -dfx
82
- cd ..
83
80
- name : Publish docs
84
81
if : ${{ github.ref == 'refs/heads/master' }}
85
82
shell : bash -l {0}
0 commit comments