forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (68 loc) · 2.21 KB
/
docs.yml
File metadata and controls
79 lines (68 loc) · 2.21 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
70
71
72
73
74
75
76
77
78
79
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Build Documentation
on:
push:
paths:
- velox/docs/**
- .github/workflows/docs.yml
pull_request:
paths:
- velox/docs/**
- .github/workflows/docs.yml
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.repository }}-${{ github.head_ref || github.sha }}
cancel-in-progress: ${{github.ref != 'refs/heads/presto-0.293-clp-connector'}}
jobs:
build_docs:
name: Build
runs-on: ubuntu-latest
env:
CCACHE_DIR: /tmp/ccache
steps:
- name: Restore ccache
if: false
uses: apache/infrastructure-actions/stash/restore@3354c1565d4b0e335b78a76aedd82153a9e144d4
id: restore-cache
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-wheels-8-core-ubuntu
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
persist-credentials: true
- name: Install System Dependencies
run: |
sudo apt install -y pipx
pipx install --force uv cmake==3.31
- name: Install Python Dependencies
run: |
which uv
make python-venv
which uv
uv pip install -r scripts/docs-requirements.txt
- name: Save ccache
uses: apache/infrastructure-actions/stash/save@3354c1565d4b0e335b78a76aedd82153a9e144d4
with:
path: ${{ env.CCACHE_DIR }}
key: ccache-wheels-8-core-ubuntu
- name: Build Documentation
run: |
source .venv/bin/activate
cd velox/docs
make clean
make html