Run CI on self-hosted runners#45
Merged
Merged
Conversation
Mirror QuantConnect/Lean#9540 (commit c57fd18b): run the build/test workflows on self-hosted runners directly inside a job-level quantconnect/lean:foundation container (--cpus 12 --memory 12g) instead of the GitHub-hosted ubuntu runner + manual 'docker run --name test-container' + runInContainer helper. - build.yml and rename-build.yml: runs-on self-hosted + job container; drop the Start/Stop container steps; strip the runInContainer prefix from every command (they now run directly in the container); rename-build cds into the renamed copy per step since the job container's workdir is the repo root. build.yml gets a concurrency group (cancel-in-progress). - actions/setup composite: drop the now-unnecessary 'Liberate disk space', 'Pull foundation image' and 'Define docker helper' steps; keep the Lean branch-check/checkout/move. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
JosueNina
approved these changes
Jun 18, 2026
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.
Mirrors QuantConnect/Lean#9540 (
c57fd18b). This repo used the manualdocker run --name test-container+runInContainertemplate (via the compositeSetupaction), which can't run on self-hosted runners (no docker).runs-on: self-hostedinside a job-levelquantconnect/lean:foundationcontainer (--cpus 12 --memory 12g); removed the Start/Stoptest-containersteps; strippedrunInContainerfrom every command (they run directly in the container);rename-buildcds into the renamed copy per step (the job container's workdir is the repo root).build.ymladds aconcurrencygroup.YAML validated; needs a self-hosted runner to confirm end-to-end.
🤖 Generated with Claude Code