Implement caching in docs build
This commit is contained in:
parent
89674db720
commit
4327b0ba9c
2 changed files with 16 additions and 2 deletions
4
.github/workflows/install_docs_deps.sh
vendored
Executable file
4
.github/workflows/install_docs_deps.sh
vendored
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
sudo apt update
|
||||||
|
sudo sudo apt install -y pandoc python3 texlive-full
|
14
.github/workflows/moduledocs.yml
vendored
14
.github/workflows/moduledocs.yml
vendored
|
@ -4,10 +4,20 @@ jobs:
|
||||||
moduledocs:
|
moduledocs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install pandoc and python3 (and texlive)
|
|
||||||
run: sudo apt-get install pandoc python3 texlive-full
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
id: cache-id
|
||||||
|
with:
|
||||||
|
path: ${{ runner.temp }}/cache-docs
|
||||||
|
key: ${{ runner.os }}-cache-build-docs-key-v1.0
|
||||||
|
- uses: airvzxf/cache-anything-new-action@60f610a30a315bf6b4dca9d4c5c2abc501d95d65
|
||||||
|
with:
|
||||||
|
script: 'install_docs_deps.sh'
|
||||||
|
is_cached: ${{ steps.cache-id.outputs.cache-hit }}
|
||||||
|
cache: ${{ runner.temp }}/cache-docs
|
||||||
|
snapshot: '/'
|
||||||
|
exclude: '/boot /data /dev /mnt /proc /run /sys'
|
||||||
- name: Compile documentation
|
- name: Compile documentation
|
||||||
run: |
|
run: |
|
||||||
cd ${{ github.workspace }}/docs
|
cd ${{ github.workspace }}/docs
|
||||||
|
|
Loading…
Reference in a new issue