Skip to content

Commit 734b2ff

Browse files
committed
chore: Use cache in CI
1 parent 102c498 commit 734b2ff

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/test.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,17 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: Cache uv installation
17+
uses: actions/cache@v3
18+
with:
19+
path: |
20+
~/.cargo/bin/uv
21+
~/.cargo/registry
22+
~/.cargo/git
23+
key: ${{ runner.os }}-uv-${{ hashFiles('.github/workflows/test.yml') }}
24+
1625
- name: Install uv
26+
if: steps.cache.outputs.cache-hit != 'true'
1727
run: |
1828
curl -LsSf https://astral.sh/uv/install.sh | sh
1929
echo "$HOME/.cargo/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)