Skip to content

Commit

Permalink
Use .conda package format
Browse files Browse the repository at this point in the history
  • Loading branch information
mrclary committed Jan 14, 2025
1 parent 2d68d4c commit b178af0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build-subrepos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
id: cache
uses: actions/cache@v4
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
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
Expand All @@ -67,6 +67,10 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
uses: mamba-org/setup-micromamba@v1
with:
condarc: |
conda_build:
pkg_format: '2'
zstd_compression_level: '19'
environment-file: installers-conda/build-environment.yml
environment-name: spy-inst
create-args: >-
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/installers-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
if: env.USE_SUBREPOS == 'true'
uses: actions/cache/restore@v4
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
path: installers-conda/build/conda-bld/**/*.conda
key: python-lsp-server_noarch_${{ matrix.python-version }}_${{ hashFiles('external-deps/python-lsp-server/.gitrepo') }}
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -174,7 +174,7 @@ jobs:
if: env.USE_SUBREPOS == 'true'
uses: actions/cache/restore@v4
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
path: installers-conda/build/conda-bld/**/*.conda
key: qtconsole_noarch_${{ matrix.python-version }}_${{ hashFiles('external-deps/qtconsole/.gitrepo') }}
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand All @@ -183,7 +183,7 @@ jobs:
if: env.USE_SUBREPOS == 'true'
uses: actions/cache/restore@v4
with:
path: installers-conda/build/conda-bld/**/*.tar.bz2
path: installers-conda/build/conda-bld/**/*.conda
key: spyder-kernels_${{ matrix.spyk-arch }}_${{ matrix.python-version }}_${{ hashFiles('external-deps/spyder-kernels/.gitrepo') }}
enableCrossOsArchive: true
fail-on-cache-miss: true
Expand Down Expand Up @@ -262,8 +262,9 @@ jobs:
run: |
mkdir -p $CONDA_BLD_PATH
conda config --set bld_path $CONDA_BLD_PATH
conda config --set conda_build.root-dir $CONDA_BLD_PATH
conda index $CONDA_BLD_PATH
mamba search -c local --override-channels || true
conda search -c local --override-channels || true
- name: Create Keychain
if: runner.os == 'macOS' && env.NOTARIZE == 'true'
Expand Down

0 comments on commit b178af0

Please sign in to comment.