-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 1.85 KB
/
doc.yml
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
name: Documentation
on:
push: { branches: [ "master" ] }
pull_request: { branches: [ "master" ] }
concurrency:
group: doc-${{ github.ref }}
cancel-in-progress: true
jobs:
build-manual:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with: { submodules: recursive }
- uses: conda-incubator/setup-miniconda@v2
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest", python-version: "3.9" }
- name: install dependencies
shell: bash -l {0}
run: |
mamba env update --quiet -n test -f environment.yml
mamba env update --quiet -n test -f doc/environment.yml
conda list
- name: fix permissions
shell: bash -l {0}
run: |
# Strangely, the linkchecker modules are installed writable and linkchecker then refuses to load them.
chmod -R a-w `python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())"`
- name: build gmpxxll
shell: bash -l {0}
run: |
echo "::group::bootstrap"
./bootstrap
echo "::group::configure"
./configure --prefix=${CONDA_PREFIX} --without-benchmark --without-byexample
echo "::group::make"
make
- name: build documentation
shell: bash -l {0}
run: |
make html
- name: detect broken links
shell: bash -l {0}
run: |
python -m http.server 8880 --directory doc/manual/generated/html &
sleep 1
linkchecker --check-extern http://localhost:8880/gmpxxll --ignore-url '^https://flatsurf.github.io/gmpxxll/.*$'
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: doc/manual/generated/html/gmpxxll
target-folder: docs
if: ${{ github.event_name == 'push' }}