Automatically add the Findlevel_zero.cmake file to CMake's module path. #12
This file contains hidden or 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: Generate documentation | |
| # only trigger this action on specific events | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build-documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # checkout repository | |
| - name: Checkout hws | |
| uses: actions/[email protected] | |
| with: | |
| path: hardware_sampling | |
| # install dependencies | |
| - name: Dependencies | |
| run: | | |
| sudo apt update | |
| sudo apt-get install -y doxygen graphviz | |
| # configure project via CMake | |
| - name: Configure | |
| run: | | |
| cd hardware_sampling | |
| mkdir build | |
| cd build | |
| cmake -DHWS_ENABLE_DOCUMENTATION=ON .. | |
| # build project | |
| - name: Generate | |
| run: | | |
| cd hardware_sampling/build | |
| make doc | |
| # deploy generated documentation using github.io | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./hardware_sampling/docs/html |