Skip to content

Commit 2bd16f0

Browse files
committed
improved caching
1 parent 6e2cac4 commit 2bd16f0

File tree

1 file changed

+16
-20
lines changed

1 file changed

+16
-20
lines changed

.github/actions/setup/action.yml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -25,30 +25,26 @@ runs:
2525
with:
2626
python-version: ${{ inputs.python_version }}
2727

28-
# - name: Restore python site-packages from 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 }}
28+
- name: Restore python site-packages from 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+
~/.local/bin
35+
key: pygl-${{ runner.arch }}-${{ inputs.python_version }}-${{ inputs.version }}
3536

3637
- name: Install GardenLinux Python library
3738
shell: bash
3839
run: |
3940
pip install --user \
4041
https://github.com/gardenlinux/python-gardenlinux-lib/releases/download/${{ inputs.version }}/gardenlinux-${{ inputs.version }}-py3-none-any.whl
4142
42-
- name: Debug
43-
shell: bash
44-
run: |
45-
ls -l ~/.local/bin
46-
echo $PATH
47-
48-
# - name: Cache python site-packages
49-
# id: save-python-cache
50-
# uses: actions/cache/save@v4
51-
# with:
52-
# path: |
53-
# ~/.local/lib/python${{ inputs.python_version }}/site-packages
54-
# key: pygl-${{ inputs.python_version }}-${{ inputs.version }}
43+
- name: Cache python site-packages
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+
~/.local/bin
50+
key: pygl-${{ runner.arch }}-${{ inputs.python_version }}-${{ inputs.version }}

0 commit comments

Comments
 (0)