Skip to content

Commit cf56ea1

Browse files
committed
caching
1 parent ccc5e9d commit cf56ea1

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/actions/setup/action.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,25 @@ runs:
2525
with:
2626
python-version: ${{ inputs.python_version }}
2727

28+
- name: Restore python cache
29+
id: restore-python-cache
30+
uses: actions/cache/restore@v4
31+
with:
32+
path: |
33+
~/.local/lib/python${{ inputs.python_version }}/site-packages
34+
key: pygl-${{ inputs.python_version }}-${{ inputs.version }}
35+
2836
- name: Install GardenLinux Python library
2937
shell: bash
3038
run: |
31-
pip install https://github.com/gardenlinux/python-gardenlinux-lib/releases/download/${{ inputs.version }}/gardenlinux-${{ inputs.version }}-py3-none-any.whl
39+
pip install --user \
40+
https://github.com/gardenlinux/python-gardenlinux-lib/releases/download/${{ inputs.version }}/gardenlinux-${{ inputs.version }}-py3-none-any.whl
41+
ls -l $HOME/.local/lib/python${{ inputs.python_version }}/site-packages
42+
43+
- name: Save python cache
44+
id: save-python-cache
45+
uses: actions/cache/save@v4
46+
with:
47+
path: |
48+
~/.local/lib/python${{ inputs.python_version }}/site-packages
49+
key: pygl-${{ inputs.python_version }}-${{ inputs.version }}

0 commit comments

Comments
 (0)