Skip to content

Commit 5d85dfa

Browse files
committed
wow build vapoursynth for docs
1 parent a934b7a commit 5d85dfa

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,42 @@ jobs:
3434
run: |
3535
sudo apt update
3636
sudo apt install --yes libclang-dev
37+
- name: Cache zimg
38+
uses: actions/cache@v4
39+
id: cache-zimg
40+
with:
41+
path: /usr/local/lib/libzimg*
42+
key: ${{ runner.os }}-zimg-3.0.6
43+
- name: Cache vapoursynth
44+
uses: actions/cache@v4
45+
id: cache-vapoursynth
46+
with:
47+
path: |
48+
/usr/local/lib/libvapoursynth*
49+
/usr/local/include/vapoursynth
50+
key: ${{ runner.os }}-vapoursynth-${{ hashFiles('rustsynth-sys/vapoursynth/**') }}
51+
- name: Install system dependencies
52+
run: |
53+
sudo apt-get update
54+
sudo apt-get --yes install g++ make autoconf automake libtool pkg-config nasm git libclang-dev python3 python3-dev
55+
pip install Cython
56+
- name: Build zimg
57+
if: steps.cache-zimg.outputs.cache-hit != 'true'
58+
run: |
59+
git clone --branch release-3.0.6 --depth 1 https://github.com/sekrit-twc/zimg.git
60+
cd zimg
61+
./autogen.sh
62+
./configure
63+
make
64+
sudo make install
65+
- name: Build vapoursynth
66+
if: steps.cache-vapoursynth.outputs.cache-hit != 'true'
67+
run: |
68+
cd rustsynth-sys/vapoursynth
69+
./autogen.sh
70+
./configure
71+
make
72+
sudo make install
3773
- name: Run doc
3874
run: |
3975
cargo doc --workspace --no-deps

0 commit comments

Comments
 (0)