From ba175f418d92f18ced32df7ef9731224948549e8 Mon Sep 17 00:00:00 2001 From: MacOMNI <414294494@qq.com> Date: Thu, 29 Aug 2024 18:06:48 +0800 Subject: [PATCH] update apt cache --- .github/workflows/ci.yml | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68f079f6..29d93daa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,16 +31,29 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - - name: MsQuic Install Dependencies + - name: Cache APT lists + uses: actions/cache@v4 + with: + path: /var/lib/apt/lists + key: ${{ runner.os }}-apt-lists-${{ hashFiles('Networking/Sources/msquic/**') }} + restore-keys: | + ${{ runner.os }}-apt-lists- + - name: Cache APT packages uses: actions/cache@v4 with: - run: | - export DEBIAN_FRONTEND=noninteractive - sudo apt-add-repository -y ppa:lttng/stable-2.13 - sudo apt-get update - sudo apt-get install -y lttng-tools lttng-modules-dkms babeltrace2 liblttng-ust-dev python3-babeltrace - sudo apt-get install -y cmake - sudo apt-get install -y build-essential + path: /var/cache/apt + key: ${{ runner.os }}-apt-${{ hashFiles('Networking/Sources/msquic/**') }} + restore-keys: | + ${{ runner.os }}-apt- + + - name: MsQuic Install Dependencies + run: | + export DEBIAN_FRONTEND=noninteractive + sudo apt-add-repository -y ppa:lttng/stable-2.13 + sudo apt-get update + sudo apt-get install -y lttng-tools lttng-modules-dkms babeltrace2 liblttng-ust-dev python3-babeltrace + sudo apt-get install -y cmake + sudo apt-get install -y build-essential - name: Get msquic submodule commit hash id: msquic-commit-hash run: |