-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (41 loc) · 1.27 KB
/
publish_docs.yaml
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
name: Build & Publish Docs
on:
push:
branches:
- docs
jobs:
build_and_test:
name: Build bruteforcer
runs-on: ubuntu-24.04
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
path: src/
submodules: recursive
- name: Cache apt packages
uses: actions/cache@v2
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('/etc/apt/sources.list') }}
- name: Install prerequisites
run: |
sudo apt-get update
sudo apt-get install -y build-essential \
git \
cmake \
ninja-build \
python3 \
- name: Make build dir
run: mkdir src/build
- name: Generate build files
run: cmake -S src/ -B src/build -DCMAKE_GENERATOR=Ninja -DCMAKE_BUILD_TYPE=Debug -DNIC_TYPE=AF_XDP -DBUILD_DOCS=ON
- name: Build docs
run: ninja -C src/build Sphinx
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'src/build/docs/sphinx/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4