diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml new file mode 100644 index 0000000..8b25816 --- /dev/null +++ b/.github/workflows/Documentation.yml @@ -0,0 +1,39 @@ +name: Documentation + +on: + push: + branches: + - main + tags: ['*'] + pull_request: + workflow_dispatch: + +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +jobs: + build: + # Runs on a GitHub-hosted CPU runner (not the self-hosted GPU box). + # All executed `@example` blocks use `use_cuda = false`, so no GPU is + # required. + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - uses: julia-actions/cache@v2 + - name: Install dependencies + shell: julia --color=yes --project=docs/ {0} + run: | + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate() + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token + DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key + run: julia --color=yes --project=docs/ docs/make.jl diff --git a/.github/workflows/GPU.yml b/.github/workflows/GPU.yml index d4c66e1..d3d45cf 100644 --- a/.github/workflows/GPU.yml +++ b/.github/workflows/GPU.yml @@ -36,26 +36,3 @@ jobs: files: lcov.info token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false - - gpu-docs: - name: "Documentation" - runs-on: [self-hosted, gpu-v100] - timeout-minutes: 360 - if: github.event_name == 'push' || !github.event.pull_request.draft - steps: - - uses: actions/checkout@v7 - - uses: julia-actions/setup-julia@v3 - with: - version: "1.10" - - run: | - julia --project=docs -e ' - println("--- Instantiating project") - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate() - println("+++ Building documentation") - include("docs/make.jl")' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} - DATADEPS_ALWAYS_ACCEPT: true