From 4ca75bc5c955307f8fbb95042473563608023109 Mon Sep 17 00:00:00 2001 From: "H. Vetinari" Date: Fri, 10 Jan 2025 16:36:52 +0100 Subject: [PATCH 1/2] distinguish github_actions_labels for CPU vs. CUDA builds --- recipe/conda_build_config.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index d75ea1affe..b35ee20682 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -172,6 +172,12 @@ docker_image: # [os.environ.get("BUILD_PLA - quay.io/condaforge/linux-anvil-aarch64:alma9 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM") == "linux-aarch64" and os.environ.get("DEFAULT_LINUX_VERSION", "alma9") == "alma9"] - quay.io/condaforge/linux-anvil-ppc64le:alma9 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le" and os.environ.get("DEFAULT_LINUX_VERSION", "alma9") == "alma9"] +# to be overridden per feedstock; part of zip so that CPU builds can choose different agents than GPU builds +github_actions_labels: # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + zip_keys: - # [unix] - c_compiler_version # [unix] @@ -179,6 +185,7 @@ zip_keys: - fortran_compiler_version # [unix] - cuda_compiler # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - cuda_compiler_version # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - github_actions_labels # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - docker_image # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM", "").startswith("linux-")] - # [win64 and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - cuda_compiler # [win64 and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] From e41e1b6fcf325b90eb18de3633c01cacf62d36b4 Mon Sep 17 00:00:00 2001 From: h-vetinari Date: Thu, 16 Jan 2025 09:28:18 +0100 Subject: [PATCH 2/2] provide a clearer indication for intended use of github_actions_labels placeholders Co-authored-by: Daniel Ching <9604511+carterbox@users.noreply.github.com> --- recipe/conda_build_config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipe/conda_build_config.yaml b/recipe/conda_build_config.yaml index b35ee20682..5733ccd0ba 100644 --- a/recipe/conda_build_config.yaml +++ b/recipe/conda_build_config.yaml @@ -173,10 +173,10 @@ docker_image: # [os.environ.get("BUILD_PLA - quay.io/condaforge/linux-anvil-ppc64le:alma9 # [os.environ.get("CF_CUDA_ENABLED", "False") == "True" and os.environ.get("BUILD_PLATFORM") == "linux-ppc64le" and os.environ.get("DEFAULT_LINUX_VERSION", "alma9") == "alma9"] # to be overridden per feedstock; part of zip so that CPU builds can choose different agents than GPU builds -github_actions_labels: # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] - - dummy # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] +github_actions_labels: # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - cirun-openstack-cpu-placeholder # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - cirun-openstack-gpu-placeholder # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] + - cirun-openstack-gpu-placeholder # [linux and os.environ.get("CF_CUDA_ENABLED", "False") == "True"] zip_keys: - # [unix]