Forward input dims in Reshape ShapeHelper (#2828) #4
This file contains 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
name: GitHub Action Doxygen docs | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout onnx-mlir source | |
uses: actions/checkout@v2 | |
with: | |
path: onnx-mlir | |
- name: checkout gh-pages branch | |
uses: actions/checkout@v2 | |
with: | |
ref: gh-pages | |
path: gh-pages | |
- name: install doxygen and rsync | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y doxygen rsync | |
- name: copy docs into gh-pages | |
run: | | |
# Delete everything in gh-pages that are not in docs but keep .git* | |
rsync -ahvP --delete --filter 'protect .git*' \ | |
$GITHUB_WORKSPACE/onnx-mlir/docs/ $GITHUB_WORKSPACE/gh-pages/ | |
- name: doxygen API html | |
run: | | |
mkdir -p $GITHUB_WORKSPACE/gh-pages/doxygen_html | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/include/OnnxMlirRuntime.h; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OnnxMlirRuntime) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OnnxMlirRuntime \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/src/Runtime/jni/src/com/ibm/onnxmlir/OMModel.java; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OMModel_java) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OMModel_java \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/include/onnx-mlir/Runtime/OMTensor.h; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensor_h) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensor_h \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/include/onnx-mlir/Runtime/OMTensorList.h; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensorList_h) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensorList_h \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/src/Runtime/jni/src/com/ibm/onnxmlir/OMTensor.java; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensor_java) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensor_java \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
(cat $GITHUB_WORKSPACE/onnx-mlir/Doxyfile; \ | |
echo INPUT=$GITHUB_WORKSPACE/onnx-mlir/src/Runtime/jni/src/com/ibm/onnxmlir/OMTensorList.java; \ | |
echo HTML_OUTPUT=$GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensorList_java) | \ | |
doxygen - | |
# Add Jekyll front matter to pass the html through Jekyll processing | |
for html in $(find $GITHUB_WORKSPACE/gh-pages/doxygen_html/OMTensorList_java \ | |
-name "*.html"); do \ | |
sed -i -e '1s/^/---\nlayout: default\n---\n/' $html; \ | |
done | |
- name: commit updated gh-pages | |
run: | | |
cd $GITHUB_WORKSPACE/gh-pages | |
git config user.email "[email protected]" | |
git config user.name "Doxygen Bot (GitHub Action)" | |
git add . | |
# Don't fail if the branch is already up-to-date | |
git commit -m "Push docs and doxygen updates into gh-pages branch" || true | |
git push |