Skip to content

Commit 237e8be

Browse files
author
iclsrc
committed
Merge from 'sycl' to 'sycl-web' (#1)
2 parents 36b0516 + 29d9cc2 commit 237e8be

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/gh_pages.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Generate Doxygen documentation
2+
3+
on:
4+
schedule:
5+
- cron: 0 1 * * *
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
ref: sycl
14+
path: repo
15+
- uses: actions/checkout@v2
16+
with:
17+
repository: intel/llvm-docs
18+
path: docs
19+
- name: Install deps
20+
run: sudo apt-get install -y doxygen graphviz ssh
21+
- name: Build Docs
22+
run: |
23+
mkdir -p $GITHUB_WORKSPACE/build
24+
cd $GITHUB_WORKSPACE/build
25+
python $GITHUB_WORKSPACE/repo/buildbot/configure.py -w $GITHUB_WORKSPACE \
26+
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs
27+
cmake --build . --target doxygen-sycl
28+
- name: Deploy
29+
env:
30+
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}}
31+
run: |
32+
mkdir -p ~/.ssh
33+
echo "$SSH_KEY" > ~/.ssh/id_rsa
34+
chmod 600 ~/.ssh/id_rsa
35+
eval "$(ssh-agent -s)"
36+
ssh-add -k ~/.ssh/id_rsa
37+
cd $GITHUB_WORKSPACE/docs
38+
yes | \cp -rf $GITHUB_WORKSPACE/build/tools/sycl/doc/doxygen/html/* .
39+
git config --global user.name "iclsrc"
40+
git config --global user.email "ia.compiler.tools.git@intel.com"
41+
git add .
42+
git diff-index --quiet HEAD || git commit -m "Update docs" -s
43+
git push

buildbot/configure.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def do_configure(args):
1717
libclc_targets_to_build = ''
1818
sycl_build_pi_cuda = 'OFF'
1919
llvm_enable_assertions = 'ON'
20+
llvm_enable_doxygen = 'OFF'
2021

2122
if platform.system() == 'Linux':
2223
icd_loader_lib = os.path.join(icd_loader_lib, "libOpenCL.so")
@@ -32,6 +33,9 @@ def do_configure(args):
3233
if args.assertions:
3334
llvm_enable_assertions = 'ON'
3435

36+
if args.docs:
37+
llvm_enable_doxygen = 'ON'
38+
3539
install_dir = os.path.join(args.obj_dir, "install")
3640

3741
cmake_cmd = [
@@ -52,6 +56,7 @@ def do_configure(args):
5256
"-DSYCL_ENABLE_WERROR=ON",
5357
"-DCMAKE_INSTALL_PREFIX={}".format(install_dir),
5458
"-DSYCL_INCLUDE_TESTS=ON", # Explicitly include all kinds of SYCL tests.
59+
"-DLLVM_ENABLE_DOXYGEN={}".format(llvm_enable_doxygen),
5560
llvm_dir
5661
]
5762

@@ -84,6 +89,7 @@ def main():
8489
metavar="BUILD_TYPE", required=True, help="build type, debug or release")
8590
parser.add_argument("--cuda", action='store_true', help="switch from OpenCL to CUDA")
8691
parser.add_argument("--assertions", action='store_true', help="build with assertions")
92+
parser.add_argument("--docs", action='store_true', help="build Doxygen documentation")
8793

8894
args = parser.parse_args()
8995

0 commit comments

Comments
 (0)