22name : Deploy Jekyll with GitHub Pages dependencies preinstalled
33
44on :
5+ # branch_protection_rule:
56 # Runs on pushes targeting the default branch
67 push :
78 branches : ["colin/publish_docs"]
@@ -23,19 +24,68 @@ concurrency:
2324
2425jobs :
2526 # Build job
26- build :
27- if : github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
27+ # build_rfc:
28+ # # if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
29+ # if: github.repository == 'coldav/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
30+ # runs-on: ubuntu-latest
31+ # steps:
32+ # - name: Checkout
33+ # uses: actions/checkout@v4
34+ # with:
35+ # ref: rfcs
36+ # - name: Setup Pages
37+ # uses: actions/configure-pages@v5
38+ # - name: Build with Jekyll
39+ # uses: actions/jekyll-build-pages@v1
40+ # with:
41+ # source: ./
42+ # destination: ./_site/rfcs
43+ # - name: Upload artifact
44+ # uses: actions/upload-pages-artifact@v3
45+
46+ build_ock_docs :
47+ # if: github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
48+ if : github.repository == 'coldav/oneapi-construction-kit' || github.event_name == 'workflow_dispatch'
2849 runs-on : ubuntu-latest
2950 steps :
3051 - name : Checkout
3152 uses : actions/checkout@v4
32- ref : rfcs
53+
54+ - uses : actions/setup-python@v5
55+ with :
56+ python-version : 3.9
57+
58+ - name : Install apt package
59+ run : |
60+ sudo apt-get update
61+ sudo apt-get install -y doxygen virtualenv
62+
63+ - name : Install prerequisites
64+ run : python -m pip install -r doc/requirements.txt
65+
66+ - name : Build Documentation
67+ working-directory : ${{github.workspace}}
68+ run : |
69+ cmake -DCMAKE_BUILD_TYPE=Debug -DCA_RUNTIME_COMPILER_ENABLED=OFF -DCA_CL_ENABLE_OFFLINE_KERNEL_TESTS=OFF -DOCL_EXTENSION_cl_khr_il_program=OFF -Bbuild_doc
70+ cmake --build build_doc --target doc_html
71+
72+ - name : Checkout
73+ uses : actions/checkout@v4
74+ with :
75+ ref : rfcs
76+ path : rfcs
77+
78+ - name : Move rfcs to build_doc
79+ shell : bash
80+ run :
81+ mv rfcs build_doc/doc
82+
3383 - name : Setup Pages
3484 uses : actions/configure-pages@v5
3585 - name : Build with Jekyll
3686 uses : actions/jekyll-build-pages@v1
3787 with :
38- source : ./
88+ source : ./build_doc/doc
3989 destination : ./_site
4090 - name : Upload artifact
4191 uses : actions/upload-pages-artifact@v3
4696 name : github-pages
4797 url : ${{ steps.deployment.outputs.page_url }}
4898 runs-on : ubuntu-latest
49- needs : build
99+ needs : [ build_ock_docs ]
50100 steps :
51101 - name : Deploy to GitHub Pages
52102 id : deployment
0 commit comments