-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jasper Insinger
committed
Aug 6, 2024
1 parent
e0b6551
commit 667e887
Showing
2 changed files
with
50 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v4 | ||
with: | ||
path: 'src/build/docs/sphinx/html' | ||
|
||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file was deleted.
Oops, something went wrong.