-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
π Update GitHub Actions workflows to use self-hosted runner
π Current Status
- β Self-hosted runner deployed: Docker-based GitHub Actions runner is operational
- Runner name:
terraphim-github-runner-prod - Labels:
terraphim,production,docker - Status: Connected to GitHub and listening for jobs
- Version: 2.329.0 (latest)
π― Required Changes
1. Update Workflow Runner Configuration
Change all workflow files from:
runs-on: ubuntu-latestTo:
runs-on: [self-hosted, linux, x64]2. Add Runner Labels for Job Routing
Add specific labels to target our optimized runner:
jobs:
build:
runs-on: [self-hosted, linux, x64]
steps:
- uses: actions/checkout@v43. Optimize for Docker Environment
Leverage our Docker runner's capabilities:
- Cargo Cache: Use mounted Cargo cache for faster Rust builds
- Docker Socket: Enable containerized builds
- Production Labels: Route jobs to our optimized runner
π Files to Update
High Priority:
.github/workflows/ci-simple.yml.github/workflows/tauri-build.yml.github/workflows/release-comprehensive.yml
Medium Priority:
.github/workflows/claude.yml.github/workflows/CI Native (GitHub Actions + Docker Buildx).yml
π· Benefits
- β Faster Builds: Cargo cache and optimized environment
- β Cost Efficiency: Self-hosted runner vs GitHub-hosted
- β Better Control: Custom Rust toolchain and dependencies
- β Docker Integration: Support for containerized workflows
- β Production Ready: Optimized for AI/ML workloads
π§ Implementation Details
Runner Configuration
- Name: terraphim-github-runner-prod
- Labels: terraphim,production,docker
- Environment: Ubuntu 24.04 with Docker
- Optimizations: Cargo cache mounted at
/home/runner/.cargo
Workflow Updates
- Change
runs-onfromubuntu-latestto[self-hosted, linux, x64] - Add caching strategies for Rust dependencies
- Enable Docker-in-Docker support where needed
π Performance Impact
Expected improvements:
- Build times: 50-70% faster with Cargo cache
- CI/CD speed: Optimized for terraphim AI/ML workflows
- Resource utilization: Better control over build environment
- Cost reduction: Self-hosted vs GitHub-hosted runner costs
π― Next Steps
- Review and merge workflow updates
- Test with self-hosted runner
- Monitor performance and optimize further
- Scale additional runners if needed
π Support
The self-hosted runner is fully operational and ready to handle terraphim AI/ML workflows with these optimizations.
This update will significantly improve CI/CD performance and provide better control over the build environment for terraphim AI development.
Metadata
Metadata
Assignees
Labels
No labels