-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (57 loc) · 2.09 KB
/
docs.yml
File metadata and controls
69 lines (57 loc) · 2.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Documentation
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
- name: Cache CUDA Toolkit
id: cache-cuda
uses: actions/cache@v4
with:
path: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6
key: cuda-12.6.0-nvcc-cudart
- name: Install CUDA Toolkit
if: steps.cache-cuda.outputs.cache-hit != 'true'
shell: powershell
run: |
$url = "https://developer.download.nvidia.com/compute/cuda/12.6.0/network_installers/cuda_12.6.0_windows_network.exe"
Invoke-WebRequest -Uri $url -OutFile cuda_installer.exe
Start-Process -FilePath .\cuda_installer.exe -ArgumentList '-s','nvcc_12.6','cudart_12.6' -Wait -NoNewWindow
- name: Set CUDA environment
shell: powershell
run: |
echo "CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6" >> $env:GITHUB_ENV
echo "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\bin" >> $env:GITHUB_PATH
- name: Install Vulkan SDK
uses: jakoch/install-vulkan-sdk-action@v1.0.5
with:
vulkan_version: 1.3.290.0
install_runtime: false
cache: true
- name: Build and install touchpy
run: pip install . -v
env:
CMAKE_GENERATOR: Ninja
- name: Install docs dependencies
run: pip install -r docs/requirements.txt
- name: Build documentation
run: sphinx-build -M html docs/source docs/build
- name: Deploy to docs branch
uses: peaceiris/actions-gh-pages@v4
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_branch: docs
force_orphan: false