Skip to content

[CI] Install Miniforge in the compile job; include <algorithm> for GCC 15 - #234

Merged
xumingkuan merged 2 commits into
quantum-compiler:masterfrom
liupengy19:ci-install-miniforge
Nov 1, 2026
Merged

xumingkuan merged 2 commits into
quantum-compiler:masterfrom
liupengy19:ci-install-miniforge

Conversation

@liupengy19

@liupengy19 liupengy19 commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

The compile job fails before compiling anything: the ubuntu-latest runner image no longer provides a conda installation, so conda-incubator/setup-miniconda@v2 stops with

No installed conda 'base' environment found at !... If you want us to download and install Miniconda or Miniforge for you, add `miniconda-version: "latest"` or `miniforge-version: "latest"`

(e.g. the run of #233). The last successful run on master is from 2026-10-06.

This PR

  • follows the action's suggestion: setup-miniconda@v3 with miniforge-version: latest (Miniforge defaults to conda-forge, so the job does not depend on a preinstalled conda);
  • adds #include <algorithm> to src/quartz/simulator/kernel.cpp, which uses std::find: the runner now has GCC 15.2, whose headers no longer include it transitively, so the compile step failed once conda was fixed.

Checked locally by running the job's steps in a gcc:15.2 container (Miniforge, env.yml, cmake, make install, the Cython build): all 41 targets build and the Cython build succeeds.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YFXDzXihmK8D9bNxsBNotC

The ubuntu-latest runner image no longer provides a conda installation, so
setup-miniconda@v2 failed with "No installed conda 'base' environment found"
before anything was compiled. Let setup-miniconda (v3) install Miniforge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YFXDzXihmK8D9bNxsBNotC
Copilot AI balanced review requested due to automatic review settings November 1, 2026 13:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the compile-job update to explicitly install Miniforge.

No open issues 🎉

What changed in this PR

Updates the compile job to install Miniforge explicitly, addressing the setup failure on runners that no longer provide conda.

Changes:

  • Upgrades conda-incubator/setup-miniconda from v2 to v3.
  • Adds miniforge-version: latest while preserving the existing Quartz environment configuration.
File Description
.github/​workflows/​ci.yml Installs Miniforge during compile-job setup instead of relying on preinstalled conda.

Review effort: Balanced

kernel.cpp uses std::find without including <algorithm>; GCC 15 (now on the
ubuntu-latest runner) no longer provides it transitively.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YFXDzXihmK8D9bNxsBNotC
@liupengy19 liupengy19 changed the title [CI] Install Miniforge in the compile job [CI] Install Miniforge in the compile job; include <algorithm> for GCC 15 Nov 1, 2026
@xumingkuan
xumingkuan merged commit 423061b into quantum-compiler:master Nov 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants