Skip to content

Update windows.yml

Update windows.yml #6

Workflow file for this run

name: Documentation
on:
# Runs on pushes targeting the default branch
push:
branches: [ main ]
# 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 one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: sudo apt update && sudo apt install gcc-11 g++-11
shell: bash
# Fetch CUDA toolkit using Jimver/cuda-toolkit
- name: Fetch CUDA toolkit
uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '11.7.0'
linux-local-args: '["--toolkit"]'
- name: Configure cmake for Doxygen
run: cmake -B ${{github.workspace}}/build -D ESSENTIALS_BUILD_TESTS=ON -D ESSENTIALS_BUILD_BENCHMARKS=ON
shell: bash
env:
CC: gcc-11
CXX: g++-11
# Testing with a different python
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
# Install requirements
- name: Install Requirements
run: |
python --version
sudo apt-get install doxygen
doxygen --version
cd ${{github.workspace}}/docs/sphinx
pip install -r requirements.txt
# Build Sphinx documentation
- name: Build Documentation
run: |
cd ${{github.workspace}}/docs/sphinx
git clone https://github.com/gunrock/gunrock.wiki.git
make html
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload html directory
path: './docs/sphinx/_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1