mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-22 03:03:29 +00:00
Debug CI Cache.
This commit is contained in:
parent
2d2ce375f8
commit
05d5f7c0d4
1 changed files with 36 additions and 4 deletions
40
.github/workflows/build_and_publish.yml
vendored
40
.github/workflows/build_and_publish.yml
vendored
|
|
@ -15,7 +15,7 @@ jobs:
|
|||
name: ${{ matrix.python-version }} on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: true
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: ["ubuntu-latest", "macOS-latest"]
|
||||
python-version: [pypy-3.7, pypy3, 3.9, 3.8, 3.7, 3.6]
|
||||
|
|
@ -26,10 +26,42 @@ jobs:
|
|||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Display Python version and cache location
|
||||
- name: Set cache location for Ubuntu (Python)
|
||||
id: set-cache
|
||||
if: |
|
||||
startsWith(matrix.os, 'ubuntu') &&
|
||||
startsWith(matrix.python-version, '3')
|
||||
run: |
|
||||
python -c "import sys; print(sys.version)"
|
||||
pip cache dir
|
||||
python -c "import sys; print(sys.version.split("" "")[0])"
|
||||
echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/\")")"
|
||||
ls ${{ steps.set-cache.outputs.dir }}
|
||||
- name: Set cache location for Ubuntu (PyPy)
|
||||
id: set-cache
|
||||
if: |
|
||||
startsWith(matrix.os, 'ubuntu') &&
|
||||
startsWith(matrix.python-version, 'pypy')
|
||||
run: |
|
||||
python -c "import sys; print(sys.version.split("" "")[0])"
|
||||
echo "::set-output name=dir::$(python -c "import sys; print(\"/opt/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/\")")"
|
||||
ls ${{ steps.set-cache.outputs.dir }}
|
||||
- name: Set cache location for macOS (Python)
|
||||
id: set-cache
|
||||
if: |
|
||||
startsWith(matrix.os, 'macOS') &&
|
||||
startsWith(matrix.python-version, '3')
|
||||
run: |
|
||||
python -c "import sys; print(sys.version.split("" "")[0])"
|
||||
echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/Python/\" + sys.version.split("" "")[0] + \"/\")")"
|
||||
ls ${{ steps.set-cache.outputs.dir }}
|
||||
- name: Set cache location for macOS (PyPy)
|
||||
id: set-cache
|
||||
if: |
|
||||
startsWith(matrix.os, 'macOS') &&
|
||||
startsWith(matrix.python-version, 'pypy')
|
||||
run: |
|
||||
python -c "import sys; print(sys.version.split("" "")[0])"
|
||||
echo "::set-output name=dir::$(python -c "import sys; print(\"/Users/runner/hostedtoolcache/PyPy/\" + sys.version.split("" "")[0] + \"/\")")"
|
||||
ls ${{ steps.set-cache.outputs.dir }}
|
||||
- name: Pip cache
|
||||
uses: actions/cache@v2
|
||||
id: pip-cache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue