commit 9f172ed7df57ab18904b25d0f3336fc26489f8ca Author: Daniel Fichtinger Date: Wed Jul 16 00:45:26 2025 -0400 init diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..4ab22f8 --- /dev/null +++ b/action.yml @@ -0,0 +1,18 @@ +name: Setup uv cache +description: Composite action to determine uv cache dir and restore cache. +author: Daniel Fichtinger +runs: + using: "composite" + steps: + - name: Get uv cache directory + id: uv-cache + shell: bash + run: | + echo "dir=$(uv cache dir)" >> "$GITHUB_OUTPUT" + - name: Restore uv cache + uses: actions/cache@v4 + with: + path: ${{ steps.uv-cache.outputs.dir }} + key: ${{ runner.os }}-uv-${{ hashFiles('**/*requirements*.txt', '**/*requirements*.in', '**/*constraints*.txt', '**/*constraints*.in', '**/pyproject.toml', '**/uv.lock') }} + restore-keys: | + ${{ runner.os }}-uv-