@@ -5,12 +5,6 @@ on: [push, pull_request]
55env :
66 LANG : " en_US.UTF-8"
77 LC_ALL : " en_US.UTF-8"
8- HOMEBREW_DISPLAY_INSTALL_TIMES : " ON"
9- HOMEBREW_NO_ANALYTICS : " ON"
10- HOMEBREW_NO_AUTO_UPDATE : " ON"
11- HOMEBREW_NO_BOTTLE_SOURCE_FALLBACK : " ON"
12- HOMEBREW_NO_GITHUB_API : " ON"
13- HOMEBREW_NO_INSTALL_CLEANUP : " ON"
148 PIP_DISABLE_PIP_VERSION_CHECK : " ON"
159 PIP_NO_CLEAN : " ON"
1610 PIP_PREFER_BINARY : " ON"
1913
2014jobs :
2115 Build-API-Docs :
22- runs-on : macos-latest
23- env :
24- GCC_V : 10
16+ runs-on : ubuntu-latest
2517 steps :
2618 - uses : actions/checkout@v2
19+ - uses : actions/setup-python@v1
2720 with :
28- fetch-depth : 0 # Full history to get tag and commit info
29- - name : Install GFortran macOS
30- run : |
31- brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true
32- brew link gcc@${GCC_V}
33- gfortran-${GCC_V} --version
34- - name : Install Dependencies
21+ python-version : ' 3.x'
22+
23+ - name : Install dependencies
3524 run : |
36- pip3 install --prefer-binary --no-clean --disable-pip-version-check --progress-bar off lxml fypp
37- brew install -f --force-bottle --keep-tmp ford
38- type -a ford
25+ pip install -v ford==6.1.10
26+ pip install fypp
27+ python --version
3928 ford --version
40- gfortran-${GCC_V} --version
29+ fypp --version
30+
4131 - name : Skip graph and search unless deploying
4232 if : github.ref != 'refs/heads/master' && ! startsWith( github.ref, 'refs/tags/' )
4333 run : |
44- sed -i .bak 's/^[[:blank:]]*graph: *[Tt]rue/graph: false/' "${FORD_FILE}"
34+ sed -i 's/^[[:blank:]]*graph: *[Tt]rue/graph: false/' "${FORD_FILE}"
4535 echo "MAYBE_SKIP_SEARCH=--no-search" >> $GITHUB_ENV
36+
4637 - name : Build Docs
4738 run : |
4839 git fetch --all --tags
4940 ford -r $(git describe --always) --debug ${MAYBE_SKIP_SEARCH} "${FORD_FILE}"
41+
5042 - name : Upload Documentation
5143 uses : actions/upload-artifact@v2
5244 with :
5345 name : FORD-API-docs
5446 path : ./API-doc/
47+
5548 - name : Broken Link Check
5649 uses : technote-space/broken-link-checker-action@v1
5750 with :
5851 TARGET : file://${{ github.workspace }}/API-doc/index.html
5952 RECURSIVE : true
6053 ASSIGNEES : ${{ github.actor }}
54+
6155 - name : Deploy API Docs
6256 uses : peaceiris/actions-gh-pages@v3
6357 if : github.event_name == 'push' && github.repository == 'fortran-lang/stdlib' && ( startsWith( github.ref, 'refs/tags/' ) || github.ref == 'refs/heads/master' )
0 commit comments