diff --git a/.github/workflows/people-thumbs.yml b/.github/workflows/people-thumbs.yml index dca014a..91fe1de 100644 --- a/.github/workflows/people-thumbs.yml +++ b/.github/workflows/people-thumbs.yml @@ -25,7 +25,18 @@ jobs: - name: Install cwebp shell: bash - run: npm install cwebp + run: | + pwd + sudo apt-get install libjpeg-dev libpng-dev libtiff-dev libgif-dev + wget https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.2.4-linux-x86-64.tar.gz + tar xzvf libwebp-1.2.4-linux-x86-64.tar.gz + cd libwebp-1.2.4-linux-x86-64/bin + mv cwebp ${{ github.workspace }} + cd ../.. + rm -rf libwebp-1.2.4-linux-x86-64 + rm -rf libwebp-1.2.4-linux-x86-64.tar.gz + sudo mv cwebp /bin + ls - name: Run image optimisation script run: make img-opt