From 12188cb77d6041f496b5b86dc76b949238e2c9d3 Mon Sep 17 00:00:00 2001 From: Khyber Sen Date: Mon, 14 Jul 2025 04:35:36 -0400 Subject: [PATCH] ci: use `awalsh128/cache-apt-pkgs-action@latest` to cache `apt install` We already use this GitHub Action on other projects like IA2 and rav1d. --- .github/workflows/ci.yml | 61 ++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f91ebc133..2a2d46a538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,37 +59,36 @@ jobs: - name: Install packages (Ubuntu) if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install \ - clang \ - clang-tools \ - cmake \ - curl \ - git \ - gperf \ - libbrotli-dev \ - libclang-${{ matrix.clang-version }}-dev \ - libgcrypt20 \ - libreadline-dev \ - libidn2-dev \ - libldap2-dev \ - libncurses5-dev \ - libnghttp2-dev \ - libpcre3-dev \ - libpsl-dev \ - libreadline-dev \ - librtmp-dev \ - libssl-dev \ - libtool \ - llvm \ - llvm-dev \ - luarocks \ - ninja-build \ - pkg-config \ - rcs \ - strace \ - unzip \ + uses: awalsh128/cache-apt-pkgs-action@latest + with: + packages: | + clang + clang-tools + cmake + curl + git + gperf + libbrotli-dev + libclang-${{ matrix.clang-version }}-dev + libgcrypt20 + libreadline-dev + libidn2-dev + libldap2-dev + libncurses5-dev + libnghttp2-dev + libpcre3-dev + libpsl-dev + librtmp-dev + libssl-dev + libtool + llvm + llvm-dev + luarocks + ninja-build + pkg-config + rcs + strace + unzip zlib1g-dev - name: Install packages (macOS)