mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Use ccache for docs gen github workflow
This commit is contained in:
parent
35121779f1
commit
a26b504b8e
1 changed files with 18 additions and 12 deletions
30
.github/workflows/generate-docs.yml
vendored
30
.github/workflows/generate-docs.yml
vendored
|
@ -41,33 +41,39 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get -y install \
|
sudo apt-get -y install \
|
||||||
git \
|
|
||||||
cmake \
|
|
||||||
make \
|
|
||||||
gcc \
|
|
||||||
g++ \
|
|
||||||
flex \
|
|
||||||
bison \
|
bison \
|
||||||
libfl2 \
|
bsdmainutils \
|
||||||
|
ccache \
|
||||||
|
cmake \
|
||||||
|
flex \
|
||||||
|
g++ \
|
||||||
|
gcc \
|
||||||
|
git \
|
||||||
libfl-dev \
|
libfl-dev \
|
||||||
|
libfl2 \
|
||||||
|
libkrb5-dev \
|
||||||
libpcap-dev \
|
libpcap-dev \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
|
make \
|
||||||
python3 \
|
python3 \
|
||||||
python3-dev \
|
python3-dev \
|
||||||
python3-pip\
|
python3-pip\
|
||||||
|
sqlite3 \
|
||||||
swig \
|
swig \
|
||||||
zlib1g-dev \
|
zlib1g-dev
|
||||||
libkrb5-dev \
|
|
||||||
bsdmainutils \
|
|
||||||
sqlite3
|
|
||||||
# Many distros adhere to PEP 394's recommendation for `python` =
|
# Many distros adhere to PEP 394's recommendation for `python` =
|
||||||
# `python2` so this is a simple workaround until we drop Python 2
|
# `python2` so this is a simple workaround until we drop Python 2
|
||||||
# support and explicitly use `python3` for all invocations.
|
# support and explicitly use `python3` for all invocations.
|
||||||
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
|
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
|
||||||
sudo pip3 install -r doc/requirements.txt
|
sudo pip3 install -r doc/requirements.txt
|
||||||
|
|
||||||
|
- name: ccache
|
||||||
|
uses: hendrikmuhs/ccache-action@v1.2
|
||||||
|
with:
|
||||||
|
key: 'docs-gen-${{ github.job }}'
|
||||||
|
|
||||||
- name: Configure
|
- 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
|
- name: Build
|
||||||
run: cd build && make -j $(nproc)
|
run: cd build && make -j $(nproc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue