Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
@@ -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
23 changes: 0 additions & 23 deletions .github/workflows/GPU.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading