Skip to content

Commit

Permalink
Cache apt-get dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 20, 2024
1 parent 52c70ff commit cc061b8
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ fi

set -e

if [[ $(uname) != CYGWIN* ]]; then
time sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
sway wl-clipboard libopenblas-dev
fi
#if [[ $(uname) != CYGWIN* ]]; then
# time sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
# ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
# cmake meson imagemagick libharfbuzz-dev libfribidi-dev\
# sway wl-clipboard libopenblas-dev
#fi

time python3 -m pip install --upgrade pip
time python3 -m pip install --upgrade wheel
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ jobs:
- name: Build system information
run: python3 .github/workflows/system-info.py

- name: Install Linux apt dependencies
if: startsWith(matrix.os, 'ubuntu')
uses: awalsh128/[email protected]
with:
packages: >
cmake
ghostscript
imagemagick
libffi-dev
libfreetype6-dev
libfribidi-dev
libharfbuzz-dev
libjpeg-turbo-progs
liblcms2-dev
libopenblas-dev
libopenjp2-7-dev
meson
python3-tk
sway
wl-clipboard
- name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down

0 comments on commit cc061b8

Please sign in to comment.