Skip to content

Commit 0173b6d

Browse files
committed
Use official uv cache method
1 parent d0ab9cc commit 0173b6d

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
1818
build:
1919
runs-on: ubuntu-latest
20+
env:
21+
UV_CACHE_DIR: /tmp/.uv-cache
2022

2123
steps:
2224
- name: Checkout repository
@@ -26,7 +28,6 @@ jobs:
2628
fetch-depth: 0
2729

2830
- name: Cache bin
29-
id: cache-bin
3031
uses: actions/cache@v4
3132
with:
3233
path: |
@@ -59,18 +60,16 @@ jobs:
5960
run: |
6061
make submodules
6162
62-
- name: Cache python venv
63-
id: cache-python
63+
- name: Restore uv cache
6464
uses: actions/cache@v4
6565
with:
66-
path: fprime-venv
67-
key: python-venv-${{ runner.os }}-${{ hashFiles('uv.lock') }}-v3
68-
restore-keys: |
69-
python-venv-${{ runner.os }}-
70-
python-venv-
66+
path: /tmp/.uv-cache
67+
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
68+
restore-keys: |
69+
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
70+
uv-${{ runner.os }}
7171
7272
- name: Setup python venv
73-
if: steps.cache-python.outputs.cache-hit != 'true'
7473
run: |
7574
make fprime-venv
7675
@@ -107,3 +106,6 @@ jobs:
107106
build-artifacts/zephyr.uf2
108107
build-artifacts/zephyr/fprime-zephyr-deployment/dict/ReferenceDeploymentTopologyDictionary.json
109108
retention-days: 30
109+
110+
- name: Minimize uv cache
111+
run: uv cache prune --ci

0 commit comments

Comments
 (0)