@@ -35,49 +35,49 @@ jobs:
35
35
- name : Install Lua
36
36
run : |
37
37
sudo apt-get install liblua5.2-dev
38
- - name : Setup miniconda
39
- uses : conda-incubator/setup-miniconda@v2
40
- with :
41
- activate-environment : dpctl
42
- python-version : 3.7
43
- auto-activate-base : false
44
- - name : Conda info
45
- shell : bash -l {0}
38
+ - name : Install CMake
46
39
run : |
47
- conda info
48
- conda list
40
+ sudo apt-get install cmake=3.19
41
+ - name : Setup Python
42
+ uses : actions/setup-python@v2
43
+ with :
44
+ python-version : ' 3.8'
45
+ architecture : x64
49
46
- name : Install sphinx dependencies
50
47
shell : bash -l {0}
51
48
run : |
52
- conda install -y -c conda-forge numpy cython sphinx sphinx_rtd_theme
53
- conda install -y -c conda-forge cmake=3.19 doxygen pydot setuptools make
49
+ pip install numpy cython setuptools sphinx sphinx_rtd_theme
50
+ pip install doxygen pydot
54
51
- name : Checkout repo
55
52
uses : actions/checkout@v2
53
+ with :
54
+ fetch-depth : 0
56
55
- name : Build dpctl & docs
57
56
shell : bash -l {0}
58
57
run : |
59
58
source /opt/intel/oneapi/setvars.sh
60
59
python setup.py develop
60
+ python -c "import dpctl; print(dpctl.__version__)"
61
61
cd docs
62
62
mkdir -p build && cd build && rm -rf *
63
63
wget https://github.com/vovkos/doxyrest/releases/download/doxyrest-2.1.2/doxyrest-2.1.2-linux-amd64.tar.xz
64
64
tar xf doxyrest-2.1.2-linux-amd64.tar.xz
65
- cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON -DDPCTL_ENABLE_DOXYREST=ON -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
65
+ cmake .. -DDPCTL_USE_MULTIVERSION_TEMPLATE=ON \
66
+ -DDPCTL_ENABLE_DOXYREST=ON \
67
+ -DDoxyrest_DIR=`pwd`/doxyrest-2.1.2-linux-amd64
66
68
make Sphinx
67
69
cd ..
68
70
mv generated_docs/docs ~/docs
69
71
git clean -dfx
72
+ git remote add tokened_docs https://IntelPython:${{ secrets.GITHUB_TOKEN }}@github.com/IntelPython/dpctl.git
73
+ git fetch tokened_docs
70
74
git checkout gh-pages
71
75
cd master
72
76
git rm -rf *
73
77
mv ~/docs/* .
74
78
git add .
75
79
git commit -m "Latest docs."
76
- git push
77
-
78
-
79
-
80
-
80
+ git push tokened_docs gh_pages
81
81
# - name: Deploy docs
82
82
# uses: peaceiris/actions-gh-pages@v3
83
83
# with:
0 commit comments