-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Enable doc generation via GitHub Pages #1168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
bader
merged 7 commits into
intel:sycl
from
alexbatashev:private/abatashe/gh_pages_docs
Feb 26, 2020
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6292c27
[SYCL] Enable doc generation via GitHub Pages
0c2368c
Store docs in a separate repo
92ed897
Merge remote-tracking branch 'origin/sycl' into private/abatashe/gh_p…
b97f3cc
Checkout sycl branch
c85c6ad
React to comments
0477ed5
Make Doxygen generation optional
86f7c64
Fix build
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Generate Doxygen documentation | ||
|
||
on: | ||
schedule: | ||
- cron: 0 1 * * * | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: sycl | ||
path: repo | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: intel/llvm-docs | ||
path: docs | ||
- name: Install deps | ||
run: sudo apt-get install -y doxygen graphviz ssh | ||
- name: Build Docs | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/build | ||
bader marked this conversation as resolved.
Show resolved
Hide resolved
|
||
cd $GITHUB_WORKSPACE/build | ||
python $GITHUB_WORKSPACE/repo/buildbot/configure.py -w $GITHUB_WORKSPACE \ | ||
-s $GITHUB_WORKSPACE/repo -o $GITHUB_WORKSPACE/build -t Release --docs | ||
cmake --build . --target doxygen-sycl | ||
- name: Deploy | ||
env: | ||
SSH_KEY: ${{secrets.ACTIONS_DEPLOY_KEY}} | ||
run: | | ||
mkdir -p ~/.ssh | ||
echo "$SSH_KEY" > ~/.ssh/id_rsa | ||
chmod 600 ~/.ssh/id_rsa | ||
eval "$(ssh-agent -s)" | ||
ssh-add -k ~/.ssh/id_rsa | ||
cd $GITHUB_WORKSPACE/docs | ||
yes | \cp -rf $GITHUB_WORKSPACE/build/tools/sycl/doc/doxygen/html/* . | ||
git config --global user.name "iclsrc" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git diff-index --quiet HEAD || git commit -m "Update docs" -s | ||
git push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.