Add node ci for sveltekit #593
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: Accelerate doc build | |
on: [pull_request] | |
jobs: | |
integration_doc_build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'huggingface/doc-builder' | |
path: doc-builder | |
- uses: actions/checkout@v2 | |
with: | |
repository: 'huggingface/accelerate' | |
path: accelerate | |
- name: Loading cache. | |
uses: actions/cache@v2 | |
id: cache | |
with: | |
path: ~/.cache/pip | |
key: v1-test_build_doc | |
restore-keys: | | |
v1-test_build_doc-${{ hashFiles('setup.py') }} | |
v1-test_build_doc | |
- name: Setup environment | |
run: | | |
cd doc-builder | |
pip install . | |
cd .. | |
cd accelerate | |
pip install .[dev] | |
cd .. | |
- name: Make documentation | |
run: | | |
cd doc-builder && | |
doc-builder build accelerate ../accelerate/docs/source --build_dir ../build_dir --clean --html && | |
cd .. | |
env: | |
NODE_OPTIONS: --max-old-space-size=6656 |