-
Notifications
You must be signed in to change notification settings - Fork 500
/
netlify.toml
37 lines (30 loc) · 937 Bytes
/
netlify.toml
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
[build]
base = "fbgemm_gpu/docs"
# Unconditionally rebuild the docs
# https://docs.netlify.com/configure-builds/ignore-builds/
ignore = "/bin/false"
[context.deploy-preview]
publish = "build/html"
command = """
# Load scripts
export BUILD_ENV=build_docs
. ../../.github/scripts/setup_env.bash
# Print system info
print_exec uname -a
print_exec ldd --version
# Set up Conda environment
setup_miniconda $HOME/miniconda
create_conda_environment $BUILD_ENV 3.12
# Install tools
install_cxx_compiler $BUILD_ENV
install_build_tools $BUILD_ENV
install_docs_tools $BUILD_ENV
install_pytorch_pip $BUILD_ENV nightly cpu
# Build the code
cd ..
prepare_fbgemm_gpu_build $BUILD_ENV
build_fbgemm_gpu_install $BUILD_ENV cpu
# Build the docs
cd docs
build_fbgemm_gpu_docs $BUILD_ENV
"""