Skip to content

Merge branch 'main' into yellow_paper #25

Merge branch 'main' into yellow_paper

Merge branch 'main' into yellow_paper #25

Workflow file for this run

name: Docs
on:
#push:
# branches-ignore:
# - '**'
push:
branches: [ yellow_paper ]
pull_request:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-22.04
container:
image: nvidia/cuda:12.0.0-devel-ubuntu22.04
credentials:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}
env:
DEBIAN_FRONTEND: "noninteractive"
TZ: "Asia/Singapore"
steps:
- name: Checkout
uses: actions/[email protected]
- name: Apt Requirements
run: DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y doxygen sphinx cmake python3-pip libgmp-dev libcjson1 libcjson-dev git
- name: Pip3 Requirements
run: pip3 install -r docs/requirements.txt
- name: Configure CMake
run: cmake -S . -B build -G "Unix Makefiles" -DWITH_DOCS=ON
- name: Build docs
run: cmake --build build --target docs
- name: Upload page artficat
uses: actions/upload-artifact@v4
with:
name: cuevm-docs-artifact
path: build/docs/docs/sphinx/
deploy:
runs-on: ubuntu-22.04
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download artficat
uses: actions/download-artifact@v4
with:
name: cuevm-docs-artifact
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4