Skip to content

Commit

Permalink
github CI: cache apt packages
Browse files Browse the repository at this point in the history
apt is having some reliability issues. Cache the packages to speed up
workflow and fix this.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Jul 28, 2023
1 parent 44859e8 commit e0f67c2
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/on_PR_meson.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ jobs:
deps: ['enabled', 'disabled']
steps:
- uses: actions/checkout@v3

- name: Install packages
run: |
sudo apt update
sudo apt install -y g++-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev libinih-dev libgmock-dev libgtest-dev gettext
python3 -m pip install meson==0.54.1 ninja
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: g++-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev libinih-dev libgmock-dev libgtest-dev gettext ninja-build
version: 1.0
- name: Install meson
run: python3 -m pip install meson==0.54.1
- name: Compile and Test
env:
CXX: g++-${{matrix.cxx}}
Expand All @@ -39,13 +38,12 @@ jobs:
deps: ['enabled', 'disabled']
steps:
- uses: actions/checkout@v3

- name: Install packages
run: |
sudo apt update
sudo apt install -y clang-${{matrix.cxx}} libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev lld-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev gettext
python3 -m pip install meson ninja
- uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: clang-${{matrix.cxx}} libc++abi-${{matrix.cxx}}-dev libc++-${{matrix.cxx}}-dev lld-${{matrix.cxx}} libcurl4-gnutls-dev libbrotli-dev gettext ninja-build
version: 1.0
- name: Install meson
run: python3 -m pip install meson
- name: Compile and Test
env:
CXX: clang++-${{matrix.cxx}}
Expand Down

0 comments on commit e0f67c2

Please sign in to comment.