Upgrade setup-miniconda v2 to v3, fix arm64/Mambaforge/checkout ordering#148
Merged
bschilder merged 2 commits intoneurogenomics:masterfrom Mar 13, 2026
Merged
Conversation
- setup-miniconda@v2 defaults architecture to x64, which fails on arm64 macOS runners (e.g. macos-15-arm64). v3 auto-detects the runner architecture correctly. - Mambaforge releases are no longer published by conda-forge, causing 404 errors. Updated docs to note this and recommend Miniforge3 instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When users specify environment_file pointing to a repo file (e.g. inst/conda/env.yml), the file must exist before setup-miniconda runs. Previously checkout happened after setup-miniconda, so environment_file could only reference URLs, not local repo paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
conda-incubator/setup-miniconda@v2to@v3: v2 defaultsarchitecture: x64, which downloads x86_64 installers on arm64 macOS runners (e.g.macos-15-arm64). v3 auto-detects the runner architecture.miniforge_variant: Mambaforgeis used. Updated the input description to recommend Miniforge3.environment_filepointing to a repo file (e.g.inst/conda/env.yml), the file must exist before setup-miniconda runs. Previously checkout happened after, soenvironment_filecould only work with URLs, not local repo paths.Problem
When a downstream package uses:
Two failures occur:
Even switching to Miniforge3, v2's x64 default means arm64 macOS runners install x86_64 conda via Rosetta instead of native arm64 builds.
Changes
action.ymlsetup-miniconda@v2→@v3action.ymlactions/checkout@v4beforesetup-minicondaaction.ymlminiforge_variantdescription re: MambaforgeTest plan
environment_filewith repo-local paths works after checkout reorderminiforge_variant: false(default — most users)