Skip to content

Commit

Permalink
Try build spyder-kernels on linux (except windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed Jul 24, 2023
1 parent 6c7c9da commit 40504ff
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/installers-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
if: github.event_name == 'pull_request' || (github.event_name == 'workflow_dispatch' && ! inputs.pre)
strategy:
matrix:
pkg: ["python-lsp-server", "qtconsole"]
pkg: ["python-lsp-server", "qtconsole", "spyder-kernels"]
python-version: ${{fromJson(needs.build-matrix.outputs.python_version)}}
defaults:
run:
Expand All @@ -106,7 +106,7 @@ jobs:
env:
DISTDIR: ${{ github.workspace }}/installers-conda/dist
pkg: ${{ matrix.pkg }}
artifact_name: ${{ matrix.pkg }}_${{ matrix.python-version }}
cache_base: ${{ matrix.pkg }}_${{ matrix.python-version }}

steps:
- name: Checkout Code
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
uses: actions/cache@v3
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
key: ${{ env.pkg }}_${{ hashFiles(format('external-deps/{0}/.gitrepo', env.pkg)) }}
key: ${{ env.cache_base }}_${{ hashFiles(format('external-deps/{0}/.gitrepo', env.pkg)) }}
lookup-only: true
enableCrossOsArchive: true

Expand Down Expand Up @@ -191,27 +191,34 @@ jobs:
uses: actions/cache/restore@v3
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
key: python-lsp-server_${{ hashFiles('external-deps/python-lsp-server/.gitrepo') }}
key: python-lsp-server_${{ matrix.python-version }}_${{ hashFiles('external-deps/python-lsp-server/.gitrepo') }}
enableCrossOsArchive: true

- name: Restore qtconsole Cache
if: env.IS_STANDARD_PR == 'true'
uses: actions/cache/restore@v3
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
key: qtconsole_${{ hashFiles('external-deps/qtconsole/.gitrepo') }}
key: qtconsole_${{ matrix.python-version }}_${{ hashFiles('external-deps/qtconsole/.gitrepo') }}
enableCrossOsArchive: true

- name: Restore spyder-kernels Cache
- name: Restore Unix spyder-kernels Cache
if: env.IS_STANDARD_PR == 'true' && ${{ runner.os }} != 'Windows'
uses: actions/cache/restore@v3
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
key: spyder-kernels_${{ matrix.python-version }}_${{ hashFiles('external-deps/spyder-kernels/.gitrepo') }}

- name: Restore Windows spyder-kernels Cache
id: cache
if: env.IS_STANDARD_PR == 'true'
if: env.IS_STANDARD_PR == 'true' && ${{ runner.os }} == 'Windows'
uses: actions/cache@v3
with:
path: installers-conda/build/conda-bld/**/spyder-kernels-*.tar.bz2
key: spyder-kernels_${{ matrix.target-platform }}_${{ matrix.python-version }}_${{ hashFiles('external-deps/spyder-kernels/.gitrepo') }}

- name: Build ${{ matrix.target-platform }} spyder-kernels Conda Package
if: env.IS_STANDARD_PR == 'true' && steps.cache.outputs.cache-hit != 'true'
if: env.IS_STANDARD_PR == 'true' && ${{ runner.os }} == 'Windows' && steps.cache.outputs.cache-hit != 'true'
env:
CONDA_BLD_PATH: ${{ github.workspace }}/installers-conda/build/conda-bld
run: python build_conda_pkgs.py --build spyder-kernels
Expand Down

0 comments on commit 40504ff

Please sign in to comment.