@@ -24,30 +24,38 @@ jobs:
2424 - name : Set up Python ${{ env.PYTHON_VER }}
2525 uses : actions/setup-python@v2
2626 with :
27- python-version :
28- - uses : actions/cache@v2
27+ python-version : ${{ env.PYTHON_VER }}
28+ - name : Cache plugin dependencies
29+ id : plugin-cache
30+ uses : actions/cache@v2
2931 if : startsWith(runner.os, 'Windows')
3032 with :
3133 path : ~\AppData\Local\pip\Cache
32- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
34+ key : ${{ runner.os }}-${{ env.PYTHON_VER }}- pip-${{ hashFiles('**/requirements.txt') }}
3335 restore-keys : |
3436 ${{ runner.os }}-pip-
35- - uses : actions/cache@v2
37+ - name : Cache Build dependencies
38+ id : build-cache
39+ uses : actions/cache@v2
3640 if : startsWith(runner.os, 'Windows')
3741 with :
3842 path : ~\AppData\Local\pip\Cache
39- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements-dev.txt') }}
43+ key : ${{ runner.os }}-${{ env.PYTHON_VER }}- pip-${{ hashFiles('**/requirements-dev.txt') }}
4044 restore-keys : |
4145 ${{ runner.os }}-pip-
42- - name : Install dependencies
46+ - name : Install Plugin dependencies
47+ if : steps.plugin-cache.outputs.cache-hit != 'true'
4348 run : |
4449 python -m pip install --upgrade pip
4550 pip install wheel
4651 pip install -r ./requirements.txt
52+ - name : Install Build dependencies
53+ if : steps.build-cache.outputs.cache-hit != 'true'
54+ run : |
4755 pip install -r ./requirements-dev.txt
4856 - name : Build
4957 run : |
50- python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile
58+ python -m nuitka run.py --assume-yes-for-downloads --standalone --onefile --windows-icon-from-ico=icon.png
5159 - name : Get Plugin's version
5260 id : version
5361 uses : notiz-dev/github-action-json-property@release
5967 mkdir -p staging
6068 mv run.exe staging
6169 mv plugin.json staging
62- mv icon.png staging
6370 mv SettingsTemplate.yaml staging
6471 - name : Archive Release
6572 uses : thedoctor0/zip-release@main
0 commit comments