-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4be7c8d
commit 7409e3d
Showing
10 changed files
with
159 additions
and
85 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: Docs | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- 'docs/**' | ||
- 'gallery/**' | ||
|
||
jobs: | ||
docs: | ||
runs-on: [self-hosted, Linux, X64, gpu] | ||
container: | ||
image: nvidia/cuda:11.8.0-devel-ubuntu20.04 | ||
options: --gpus all | ||
steps: | ||
- name: Install dependencies via apt | ||
run: | | ||
apt update && apt install -y ccache git | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Setup cmake | ||
uses: jwlawson/actions-setup-cmake@v1.13 | ||
with: | ||
cmake-version: '3.19.x' | ||
|
||
- name: Install dependencies via pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements-dev.txt | ||
- name: Build hidet | ||
run: | | ||
bash scripts/build_wheel.sh | ||
WHEEL=$(find ./scripts/ -maxdepth 1 -name '*.whl') | ||
echo "WHEEL_NAME=$WHEEL" >> $GITHUB_ENV | ||
echo "Built wheel: ${{ env.WHEEL_NAME }}" | ||
- name: Install hidet | ||
run: | | ||
pip install --no-deps --force-reinstall ${{ env.WHEEL_NAME }} | ||
# Build the docs | ||
|
||
- name: Install docs dependencies | ||
run: | | ||
pip install -r docs/requirements.txt | ||
- name: Build docs | ||
run: | | ||
cd docs; make clean; make html | ||
- name: Upload docs | ||
uses: up9cloud/action-rsync@master | ||
env: | ||
VERBOSE: true | ||
SOURCE: docs/build/html | ||
HOST: ${{ secrets.DOCS_HOST }} | ||
KEY: ${{ secrets.DOCS_DEPLOY_SSH_KEY }} | ||
USER: ${{ secrets.DOCS_DEPLOY_USER }} | ||
TARGET: ${{ secrets.DOCS_TARGET }} |
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -201,3 +201,6 @@ build-release | |
|
||
# onnx model | ||
*.onnx | ||
|
||
# intermediate files | ||
/gallery/**/*.json |
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
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
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
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
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