ci: switch to self-hosted runners#351
Conversation
Replace ubuntu-latest with [self-hosted, Linux, X64] to use org's AM5GamingRig runner. Testing with CI workflow first before migrating remaining workflows. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Updates the CI workflow to run all jobs on an organization self-hosted runner instead of GitHub-hosted ubuntu-latest, as a trial before broader migration.
Changes:
- Switched
runs-onfor all CI jobs fromubuntu-latestto[self-hosted, Linux, X64] - Applied consistently across
test,lint,build,ui-test, andexample-configs
| test: | ||
| name: Test (Go ${{ matrix.go-version }}) | ||
| runs-on: ubuntu-latest | ||
| runs-on: [self-hosted, Linux, X64] |
There was a problem hiding this comment.
Switching this job to a self-hosted runner means the workflow (including pull_request runs) will execute arbitrary PR code on your own machine. If PRs can come from untrusted contributors (or even just non-admins), this is a high-risk escalation compared to GitHub-hosted runners; consider gating self-hosted usage (e.g., only on push/protected branches, or with an if: condition that restricts to trusted actors/branches) or keeping PRs on GitHub-hosted runners.
| runs-on: [self-hosted, Linux, X64] | |
| runs-on: [self-hosted, Linux, X64] | |
| if: github.event_name == 'push' |
| lint: | ||
| name: Lint | ||
| runs-on: ubuntu-latest | ||
| runs-on: [self-hosted, Linux, X64] |
There was a problem hiding this comment.
Switching this job to a self-hosted runner means the workflow (including pull_request runs) will execute arbitrary PR code on your own machine. If PRs can come from untrusted contributors (or even just non-admins), this is a high-risk escalation compared to GitHub-hosted runners; consider gating self-hosted usage (e.g., only on push/protected branches, or with an if: condition that restricts to trusted actors/branches) or keeping PRs on GitHub-hosted runners.
| build: | ||
| name: Build | ||
| runs-on: ubuntu-latest | ||
| runs-on: [self-hosted, Linux, X64] |
There was a problem hiding this comment.
Switching this job to a self-hosted runner means the workflow (including pull_request runs) will execute arbitrary PR code on your own machine. If PRs can come from untrusted contributors (or even just non-admins), this is a high-risk escalation compared to GitHub-hosted runners; consider gating self-hosted usage (e.g., only on push/protected branches, or with an if: condition that restricts to trusted actors/branches) or keeping PRs on GitHub-hosted runners.
| ui-test: | ||
| name: UI Tests | ||
| runs-on: ubuntu-latest | ||
| runs-on: [self-hosted, Linux, X64] |
There was a problem hiding this comment.
Switching this job to a self-hosted runner means the workflow (including pull_request runs) will execute arbitrary PR code on your own machine. If PRs can come from untrusted contributors (or even just non-admins), this is a high-risk escalation compared to GitHub-hosted runners; consider gating self-hosted usage (e.g., only on push/protected branches, or with an if: condition that restricts to trusted actors/branches) or keeping PRs on GitHub-hosted runners.
| @@ -190,7 +190,7 @@ jobs: | |||
| # 3. Engine loading (can BuildFromConfig produce a working engine?) | |||
| example-configs: | |||
| name: Validate Example Configs | |||
There was a problem hiding this comment.
Switching this job to a self-hosted runner means the workflow (including pull_request runs) will execute arbitrary PR code on your own machine. If PRs can come from untrusted contributors (or even just non-admins), this is a high-risk escalation compared to GitHub-hosted runners; consider gating self-hosted usage (e.g., only on push/protected branches, or with an if: condition that restricts to trusted actors/branches) or keeping PRs on GitHub-hosted runners.
| name: Validate Example Configs | |
| name: Validate Example Configs | |
| if: github.event_name == 'push' |
⏱ Benchmark Results✅ No significant performance regressions detected. benchstat comparison (baseline → PR)
|
Summary
ubuntu-latestwith[self-hosted, Linux, X64]in CI workflowTest plan
🤖 Generated with Claude Code