Skip to content

Run CI on self-hosted runners#45

Open
Martin-Molinero wants to merge 1 commit into
masterfrom
ci/self-hosted-runners
Open

Run CI on self-hosted runners#45
Martin-Molinero wants to merge 1 commit into
masterfrom
ci/self-hosted-runners

Conversation

@Martin-Molinero

Copy link
Copy Markdown
Member

Mirrors QuantConnect/Lean#9540 (c57fd18b). This repo used the manual docker run --name test-container + runInContainer template (via the composite Setup action), which can't run on self-hosted runners (no docker).

  • build.yml / rename-build.yml: runs-on: self-hosted inside a job-level quantconnect/lean:foundation container (--cpus 12 --memory 12g); removed the Start/Stop test-container steps; stripped runInContainer from every command (they run directly in the container); rename-build cds into the renamed copy per step (the job container's workdir is the repo root). build.yml adds a concurrency group.
  • actions/setup composite: dropped the now-unnecessary Liberate disk space, Pull foundation image, and Define docker helper steps; kept the Lean branch-check/checkout/move.

YAML validated; needs a self-hosted runner to confirm end-to-end.

🤖 Generated with Claude Code

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>
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.

1 participant