Skip to content

Update GitHub Actions workflows to use self-hosted runnerΒ #306

@AlexMikhalev

Description

@AlexMikhalev

πŸš€ 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-latest

To:

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@v4

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

  1. .github/workflows/ci-simple.yml
  2. .github/workflows/tauri-build.yml
  3. .github/workflows/release-comprehensive.yml

Medium Priority:

  1. .github/workflows/claude.yml
  2. .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-on from ubuntu-latest to [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

  1. Review and merge workflow updates
  2. Test with self-hosted runner
  3. Monitor performance and optimize further
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions