Merge pull request #25056 from dalthviz/update-spyder-kernels-610rc1 #109
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- 'master' | |
- '6.x' | |
paths: | |
- '**.gitrepo' | |
- '.github/workflows/build-subrepos.yml' | |
workflow_call: | |
inputs: | |
branch: | |
required: false | |
type: string | |
workflow_dispatch: | |
inputs: | |
ssh: | |
description: 'Enable ssh debugging' | |
required: false | |
default: false | |
type: boolean | |
concurrency: | |
group: build-subrepos-${{ inputs.branch || github.ref_name }} | |
cancel-in-progress: true | |
name: Create Subrepo Conda Packages | |
jobs: | |
build-pkgs: | |
name: Build ${{ matrix.pkg }} ${{ matrix.cache-arch }} Python-${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
pkg: [python-lsp-server, qtconsole, spyder-kernels] | |
include: | |
- python-version: '3.12' | |
- cache-arch: noarch | |
- os: ubuntu-latest | |
pkg: spyder-kernels | |
cache-arch: unix | |
- os: windows-2022 | |
pkg: spyder-kernels | |
python-version: '3.12' | |
cache-arch: win-64 | |
defaults: | |
run: | |
shell: bash -l {0} | |
working-directory: ${{ github.workspace }}/installers-conda | |
env: | |
pkg: ${{ matrix.pkg }} | |
steps: | |
- name: Setup Remote SSH Connection | |
if: env.ENABLE_SSH == 'true' | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 60 | |
with: | |
detached: true | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ inputs.branch }} | |
- name: Cache ${{ matrix.pkg }} ${{ matrix.cache-arch }} Conda Build | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: installers-conda/build/conda-bld/**/*.conda | |
key: ${{ matrix.pkg }}_${{ matrix.cache-arch }}_${{ matrix.python-version }}_${{ hashFiles(format('external-deps/{0}/.gitrepo', env.pkg)) }} | |
lookup-only: true | |
enableCrossOsArchive: true | |
- name: Setup Build Environment | |
if: steps.cache.outputs.cache-hit != 'true' | |
uses: mamba-org/setup-micromamba@v2 | |
with: | |
condarc: | | |
conda_build: | |
pkg_format: '2' | |
zstd_compression_level: '19' | |
environment-file: installers-conda/build-environment.yml | |
environment-name: spy-inst | |
create-args: >- | |
--channel-priority=flexible | |
python=${{ matrix.python-version }} | |
cache-downloads: true | |
cache-environment: true | |
- name: Build ${{ matrix.pkg }} Conda Package | |
if: steps.cache.outputs.cache-hit != 'true' | |
env: | |
CONDA_BLD_PATH: ${{ github.workspace }}/installers-conda/build/conda-bld | |
python_min: '3.9' | |
run: python build_conda_pkgs.py --build $pkg |