Skip to content

[Bug]: GitHub Actions: conda build fails with “invalid choice: 'build'” after installing conda-build #341

@harryswift01

Description

@harryswift01

Bug Report

conda build command is unavailable in GitHub Actions despite conda-build being installed in a previous workflow step. The same recipe and workflow previously worked without modification and still builds successfully locally.

Environment and Versions

  • Operating System: GitHub Actions ubuntu-24.04
  • Python Version: 3.12
  • Conda distribution: Miniforge3
  • setup-miniconda action: conda-incubator/setup-miniconda@v3

Local reproduction status:

  • Builds successfully locally using the same recipe and command
  • Issue only occurs in GitHub Actions

Additional Context

This workflow previously worked without issue and no relevant workflow or recipe changes were made before the failure started occurring.

The problem appears related to environment activation or shell state between workflow steps. Setting auto-activate: true and activating base appears to resolve the issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions