2828 os : ubuntu
2929 runs_on : ['ubuntu-latest']
3030 DOCKER_IMAGE : quay.io/condaforge/linux-anvil-x86_64:alma9
31+ tools_install_dir : ~/miniforge3
32+ build_workspace_dir : build_artifacts
33+ docker_run_args :
3134 steps :
3235
3336 - name : Checkout code
@@ -37,11 +40,13 @@ jobs:
3740 id : build-linux
3841 if : matrix.os == 'ubuntu'
3942 env :
43+ MINIFORGE_HOME : ${{ matrix.tools_install_dir }}
44+ CONDA_BLD_PATH : ${{ matrix.build_workspace_dir }}
4045 CONFIG : ${{ matrix.CONFIG }}
4146 UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
4247 DOCKER_IMAGE : ${{ matrix.DOCKER_IMAGE }}
4348 CI : github_actions
44- CONDA_FORGE_DOCKER_RUN_ARGS : " ${{ matrix.CONDA_FORGE_DOCKER_RUN_ARGS }}"
49+ CONDA_FORGE_DOCKER_RUN_ARGS : " ${{ matrix.docker_run_args }}"
4550 BINSTAR_TOKEN : ${{ secrets.BINSTAR_TOKEN }}
4651 FEEDSTOCK_TOKEN : ${{ secrets.FEEDSTOCK_TOKEN }}
4752 STAGING_BINSTAR_TOKEN : ${{ secrets.STAGING_BINSTAR_TOKEN }}
@@ -61,13 +66,17 @@ jobs:
6166 else
6267 export IS_PR_BUILD="False"
6368 fi
69+ export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}"
70+ export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}"
6471 echo "::endgroup::"
6572 ./.scripts/run_docker_build.sh
6673
6774 - name : Build on macOS
6875 id : build-macos
6976 if : matrix.os == 'macos'
7077 env :
78+ MINIFORGE_HOME : ${{ matrix.tools_install_dir }}
79+ CONDA_BLD_PATH : ${{ matrix.build_workspace_dir }}
7180 CONFIG : ${{ matrix.CONFIG }}
7281 UPLOAD_PACKAGES : ${{ matrix.UPLOAD_PACKAGES }}
7382 CI : github_actions
8695 else
8796 export IS_PR_BUILD="False"
8897 fi
98+ export MINIFORGE_HOME="${MINIFORGE_HOME/#~/${HOME}}"
99+ export CONDA_BLD_PATH="${CONDA_BLD_PATH/#~/${HOME}}"
89100 ./.scripts/run_osx_build.sh
90101
91102 - name : Build on windows
@@ -98,10 +109,8 @@ jobs:
98109 set "sha=%GITHUB_SHA%"
99110 call ".scripts\run_win_build.bat"
100111 env :
101- # default value; make it explicit, as it needs to match with artefact
102- # generation below. Not configurable for now, can be revisited later
103- CONDA_BLD_PATH : C:\bld
104- MINIFORGE_HOME : ${{ contains(runner.arch, 'ARM') && 'C' || 'D' }}:\Miniforge
112+ MINIFORGE_HOME : ${{ matrix.tools_install_dir }}
113+ CONDA_BLD_PATH : ${{ matrix.build_workspace_dir }}
105114 PYTHONUNBUFFERED : 1
106115 CONFIG : ${{ matrix.CONFIG }}
107116 CI : github_actions
0 commit comments