This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 78
66 lines (61 loc) · 2.19 KB
/
Documenter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Documentation
on:
pull_request:
paths:
- 'docs/**'
- 'tutorials/**'
- 'src/**'
- 'Project.toml'
- 'Manifest.toml'
jobs:
docs-build:
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.4.0
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2.2.0
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get -qq install libxt6 libxrender1 libxext6 libgl1-mesa-glx libqt5widgets5 xvfb
- uses: julia-actions/setup-julia@latest
with:
version: 1.5.4
# https://discourse.julialang.org/t/recommendation-cache-julia-artifacts-in-ci-services/35484
- name: Cache artifacts
uses: actions/cache@v1
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install Julia dependencies
env:
JULIA_PROJECT: "docs/"
run: |
julia --project -e 'using Pkg; Pkg.instantiate()'
julia --project=docs/ -e 'using Pkg; Pkg.instantiate()'
julia --project=docs/ -e 'using Pkg; Pkg.precompile()'
- name: Build and deploy
# Run with X virtual frame buffer as GR (default backend for Plots.jl) needs
# an X session to run without warnings
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
XDG_RUNTIME_DIR: "/home/runner"
JULIA_PROJECT: "docs/"
CLIMATEMACHINE_DOCS_GENERATE_TUTORIALS: "false"
ClIMATEMACHINE_SETTINGS_DISABLE_GPU: "true"
CLIMATEMACHINE_SETTINGS_DISABLE_CUSTOM_LOGGER: "true"
CLIMATEMACHINE_SETTINGS_FIX_RNG_SEED: "true"
run: xvfb-run -- julia --project=docs/ --color=yes docs/make.jl
- name: Help! Documenter Failed
run: |
cat .github/workflows/doc_build_common_error_messages.md
if: failure()