forked from LBRYCommunity/lbry-sdk
Single "set pip cache dir" task with conditional inside.
This commit is contained in:
parent
84e5e43117
commit
d2f5073ef4
1 changed files with 10 additions and 16 deletions
18
.github/workflows/main.yml
vendored
18
.github/workflows/main.yml
vendored
|
@ -35,13 +35,10 @@ jobs:
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.7'
|
python-version: '3.7'
|
||||||
- name: set pip cache dir (linux/mac)
|
- name: set pip cache dir
|
||||||
if: (!startsWith(runner.os, 'windows'))
|
- if: (!startsWith(runner.os, 'windows'))
|
||||||
id: pip-cache-nix
|
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
||||||
- name: set pip cache dir (windows)
|
- if: startsWith(runner.os, 'windows')
|
||||||
if: startsWith(runner.os, 'windows')
|
|
||||||
id: pip-cache-win
|
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
||||||
- name: debug pip cache
|
- name: debug pip cache
|
||||||
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
||||||
|
@ -158,13 +155,10 @@ jobs:
|
||||||
uses: ASzc/change-string-case-action@v5
|
uses: ASzc/change-string-case-action@v5
|
||||||
with:
|
with:
|
||||||
string: ${{ runner.os }}
|
string: ${{ runner.os }}
|
||||||
- name: set pip cache dir (linux/mac)
|
- name: set pip cache dir
|
||||||
if: (!startsWith(runner.os, 'windows'))
|
- if: (!startsWith(runner.os, 'windows'))
|
||||||
id: pip-cache-nix
|
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $GITHUB_ENV
|
||||||
- name: set pip cache dir (windows)
|
- if: startsWith(runner.os, 'windows')
|
||||||
if: startsWith(runner.os, 'windows')
|
|
||||||
id: pip-cache-win
|
|
||||||
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
run: echo "PIP_CACHE_DIR=$(pip cache dir)" >> $env:GITHUB_ENV
|
||||||
- name: debug pip cache
|
- name: debug pip cache
|
||||||
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
run: echo "PIP_CACHE_DIR=${{ env.PIP_CACHE_DIR }}"
|
||||||
|
|
Loading…
Reference in a new issue