1- name : conda-package
1+ name : conda-build
22
33on :
44 push :
@@ -20,40 +20,39 @@ concurrency:
2020jobs :
2121 build :
2222 runs-on : ubuntu-latest
23- env :
24- MAMBA_ROOT_PREFIX : ${{ runner.temp }}/mamba
25- CONDA_BLD_PATH : ${{ runner.temp }}/conda-bld
26- # Ensure pip doesn't reach to PyPI or resolve runtime deps during recipe builds
27- PIP_NO_BUILD_ISOLATION : " 1"
28- PIP_NO_DEPS : " 1"
2923
3024 steps :
3125 - name : Checkout
3226 uses : actions/checkout@v4
3327
28+ # Export paths based on RUNNER_TEMP (works everywhere)
29+ - name : Set temp-based paths
30+ run : |
31+ echo "MAMBA_ROOT_PREFIX=${RUNNER_TEMP}/mamba" >> "$GITHUB_ENV"
32+ echo "CONDA_BLD_PATH=${RUNNER_TEMP}/conda-bld" >> "$GITHUB_ENV"
33+ echo "PIP_NO_BUILD_ISOLATION=1" >> "$GITHUB_ENV"
34+ echo "PIP_NO_INDEX=1" >> "$GITHUB_ENV"
35+ echo "PIP_NO_DEPS=1" >> "$GITHUB_ENV"
36+
3437 - name : Set up micromamba (with cache)
3538 uses : mamba-org/setup-micromamba@v2
3639 with :
3740 micromamba-version : " latest"
3841 cache-environment : true
3942 cache-downloads : true
43+ init-shell : bash
44+ condarc : |
45+ channel_priority: strict
46+ channels:
47+ - conda-forge
48+ # add your org channel if your recipe/tests need it:
49+ # - cadwr-dms
4050
41- - name : Configure channels (strict conda-forge)
42- shell : bash -l {0}
43- run : |
44- conda config --set channel_priority strict
45- conda config --remove channels defaults || true
46- conda config --add channels conda-forge
47-
48- # Minimal tooling env (easy to augment)
4951 - name : Create tooling env (cached)
5052 shell : bash -l {0}
5153 run : |
5254 micromamba create -y -n tools \
5355 python>=3.10 \
54- numpy>=2.0 \
55- vtools>4.9.5 \
56- dms-datastore>=0.0.16 \
5756 conda-build \
5857 boa \
5958 anaconda-client
@@ -65,15 +64,14 @@ jobs:
6564 shell : bash -l {0}
6665 run : |
6766 micromamba activate tools
68- conda mambabuild conda.recipe --no-test -c conda-forge
67+ conda mambabuild conda.recipe --no-test
6968
70- # Optional: run recipe tests if you already rely on them
71- - name : Test conda recipe
69+ - name : Test conda recipe (optional)
7270 if : always()
7371 shell : bash -l {0}
7472 run : |
7573 micromamba activate tools
76- conda mambabuild conda.recipe -c conda-forge
74+ conda mambabuild conda.recipe
7775
7876 - name : Upload to Anaconda (if token configured)
7977 if : env.ANACONDA_CHANNEL_UPLOAD_TOKEN != ''
0 commit comments