Change to Gitub pages for docs #1
Workflow file for this run
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: 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@v4 | |
with: | |
path: 'src/build/docs/sphinx/html' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |