Use ccache for docs gen github workflow

This commit is contained in:
Tim Wojtulewicz 2022-06-15 09:27:42 -07:00
parent 35121779f1
commit a26b504b8e

View file

@ -41,33 +41,39 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y install \
git \
cmake \
make \
gcc \
g++ \
flex \
bison \
libfl2 \
bsdmainutils \
ccache \
cmake \
flex \
g++ \
gcc \
git \
libfl-dev \
libfl2 \
libkrb5-dev \
libpcap-dev \
libssl-dev \
make \
python3 \
python3-dev \
python3-pip\
sqlite3 \
swig \
zlib1g-dev \
libkrb5-dev \
bsdmainutils \
sqlite3
zlib1g-dev
# Many distros adhere to PEP 394's recommendation for `python` =
# `python2` so this is a simple workaround until we drop Python 2
# support and explicitly use `python3` for all invocations.
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
sudo pip3 install -r doc/requirements.txt
- name: ccache
uses: hendrikmuhs/ccache-action@v1.2
with:
key: 'docs-gen-${{ github.job }}'
- name: Configure
run: ./configure --disable-broker-tests --disable-cpp-tests --disable-spicy
run: ./configure --disable-broker-tests --disable-cpp-tests --disable-spicy --ccache
- name: Build
run: cd build && make -j $(nproc)