forked from LBRYCommunity/lbry-sdk
Functions save-state, set-output deprecated. Use new mechanism.
This commit is contained in:
parent
2609dee8fb
commit
d36e305129
1 changed files with 20 additions and 6 deletions
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
|
@ -35,13 +35,20 @@ jobs:
|
|||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- name: set pip cache dir
|
||||
- name: set pip cache dir (linux/mac)
|
||||
if: runner.os != 'Windows'
|
||||
id: pip-cache
|
||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
- name: set pip cache dir (windows)
|
||||
if: runner.os == 'Windows'
|
||||
id: pip-cache
|
||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_OUTPUT
|
||||
- name: debug pip cache
|
||||
run: echo "PIP_CACHE_DIR=${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}"
|
||||
- name: extract pip cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
path: ${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||
restore-keys: ${{ runner.os }}-pip-
|
||||
- id: os-name
|
||||
|
@ -151,13 +158,20 @@ jobs:
|
|||
uses: ASzc/change-string-case-action@v1
|
||||
with:
|
||||
string: ${{ runner.os }}
|
||||
- name: set pip cache dir
|
||||
- name: set pip cache dir (linux/mac)
|
||||
if: runner.os != 'Windows'
|
||||
id: pip-cache
|
||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_OUTPUT
|
||||
- name: set pip cache dir (windows)
|
||||
if: runner.os == 'Windows'
|
||||
id: pip-cache
|
||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_OUTPUT
|
||||
- name: debug pip cache
|
||||
run: echo "PIP_CACHE_DIR=${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}"
|
||||
- name: extract pip cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
path: ${{ steps.pip-cache.outputs.PIP_CACHE_DIR }}
|
||||
key: ${{ runner.os }}-pip-${{ hashFiles('setup.py') }}
|
||||
restore-keys: ${{ runner.os }}-pip-
|
||||
- run: pip install pyinstaller==4.6
|
||||
|
|
Loading…
Reference in a new issue