Compare commits
2 commits
9f172ed7df
...
dac7f7aea0
Author | SHA1 | Date | |
---|---|---|---|
dac7f7aea0 | |||
0d5ceb4786 |
2 changed files with 11 additions and 0 deletions
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# uv-cache
|
||||||
|
|
||||||
|
This is a very simple action that sets up cache support for `uv`. It doesn't do
|
||||||
|
anything else. It's assumed that `uv`, as well as all the dependencies for
|
||||||
|
`actions/cache@v4` are available in the container. I wrote this to work well
|
||||||
|
with [based-alpine](https://git.ficd.sh/ficd/based-alpine).
|
|
@ -1,6 +1,10 @@
|
||||||
name: Setup uv cache
|
name: Setup uv cache
|
||||||
description: Composite action to determine uv cache dir and restore cache.
|
description: Composite action to determine uv cache dir and restore cache.
|
||||||
author: Daniel Fichtinger
|
author: Daniel Fichtinger
|
||||||
|
outputs:
|
||||||
|
uv-cache-hit:
|
||||||
|
description: "Whether the uv cache was restored"
|
||||||
|
value: ${{ steps.cache-restore.outputs.cache-hit }}
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
|
@ -10,6 +14,7 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
echo "dir=$(uv cache dir)" >> "$GITHUB_OUTPUT"
|
echo "dir=$(uv cache dir)" >> "$GITHUB_OUTPUT"
|
||||||
- name: Restore uv cache
|
- name: Restore uv cache
|
||||||
|
id: cache-restore
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.uv-cache.outputs.dir }}
|
path: ${{ steps.uv-cache.outputs.dir }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue