From dafaab5fcd5f49be91cd0357b0f9acf7ed6034ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Mon, 30 Sep 2024 18:54:04 +0200 Subject: [PATCH] gha: use ccache --- .github/workflows/tests.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3cd439c..d5a2709 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -53,6 +53,7 @@ jobs: run: | sudo apt update sudo apt install --no-install-recommends -y \ + ccache \ libnuma-dev libdnnl-dev opencl-dev - name: Set up Python ${{ matrix.pyv }} @@ -85,6 +86,13 @@ jobs: path: .nox/tests-${{ matrix.pyv }} key: ${{ runner.os }}-tests-${{ matrix.pyv }}-${{ matrix.vllm_version }}-${{ hashFiles('noxfile.py') }} + - name: Cache ccache cache directory + id: cache-ccache + uses: actions/cache@v4 + with: + path: /home/runner/.cache/ccache + key: ${{ runner.os }} + - name: Run tests run: nox --reuse-venv=yes -v -s tests-${{ matrix.pyv }} -- --cov-report=xml env: