[pre-commit.ci] pre-commit autoupdate #511
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: docs | |
| on: | |
| push: | |
| paths-ignore: | |
| - .github/workflows/** | |
| - '!.github/workflows/docs.yml' | |
| pull_request: | |
| paths-ignore: | |
| - .github/workflows/** | |
| - '!.github/workflows/docs.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: π₯ Checkout | |
| uses: actions/checkout@v6 | |
| - name: π Load .env file | |
| if: hashFiles('.github/workflows/.env') != '' | |
| uses: xom9ikk/dotenv@v2.3.0 | |
| with: | |
| path: .github/workflows | |
| - name: π Load .env file | |
| if: hashFiles('.github/workflows/.env') != '' | |
| uses: xom9ikk/dotenv@v2.3.0 | |
| with: | |
| path: .github/workflows | |
| mode: docs | |
| - name: β¬οΈ Install/Configure mamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: ${{ github.workspace }}/.github/workflows/mamba/docs.yml | |
| init-shell: bash | |
| cache-environment: true | |
| post-cleanup: all | |
| environment-name: ${{ env.MAMBA_ENVIRONMENT }} | |
| - name: β¬οΈ Install python packages | |
| run: ${{ env.MAMBA_ROOT_PREFIX }}/envs/${{ env.MAMBA_ENVIRONMENT }}/bin/python -m pip install ${{ env.PIP_PACKAGES }} | |
| - name: β¬οΈ Install TinyTeX | |
| uses: r-lib/actions/setup-tinytex@v2 | |
| env: | |
| TINYTEX_INSTALLER: ${{ env.TINYTEX_INSTALLER }} | |
| - name: β¬οΈ Install LaTeX packages | |
| run: | | |
| tlmgr install ${{ env.TINYTEX_PACKAGES }} | |
| tlmgr list --only-installed | |
| - name: β¬οΈ Setup CMake | |
| uses: lukka/get-cmake@latest | |
| with: | |
| cmakeVersion: ^3 | |
| ninjaVersion: ~1 | |
| - name: βοΈ run-cmake (configure) | |
| uses: cmake-tools/run-cmake@v0-alpha | |
| id: configure | |
| with: | |
| mode: configure | |
| source_dir: ${{ env.CMAKE_SOURCE_PREFIX }} | |
| install_prefix: ${{ github.workspace }}/${{ env.CMAKE_INSTALL_PREFIX }} | |
| variables: | | |
| CMAKE_PROGRAM_PATH=${{ env.MAMBA_ROOT_PREFIX }}/envs/${{ env.MAMBA_ENVIRONMENT }}/bin | |
| CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | |
| CMMM_BUILD_TESTS=OFF | |
| list_cache_variables: advanced | |
| - name: π οΈ run-cmake (build) | |
| uses: cmake-tools/run-cmake@v0-alpha | |
| id: build | |
| with: | |
| mode: build | |
| clean_first: true | |
| build_targets: | | |
| docs-all | |
| build_verbose: true | |
| - name: π₯ run-cmake (install) | |
| uses: cmake-tools/run-cmake@v0-alpha | |
| id: install | |
| with: | |
| mode: install | |
| strip: true | |
| install_verbose: true | |
| - name: π Move pdf files | |
| run: cmake -E copy ${{ env.CMAKE_INSTALL_PREFIX }}/share/doc/pdf/cmmm.pdf ${{ env.CMAKE_INSTALL_PREFIX }}/share/doc/html/pdf/cmmm.pdf | |
| - name: β¬οΈ Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: π₯ Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: ${{ github.workspace }}/install/share/doc/html/ | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: π Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |