From 1f2446935f820d5d0fa4fede4e673f8eaff28098 Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Sat, 17 Oct 2026 11:31:43 -0400 Subject: [PATCH] ci: run develop's Linux jobs on the self-hosted runner when SELF_HOSTED_RUNNER is set Pushes, the schedule and Run workflow go to the runner labelled by the repository variable SELF_HOSTED_RUNNER (tangency-labs/ci-runner, label fieldcraft-ci); pull requests always stay on GitHub's runners, so fork code never reaches it. Unset the variable and every job is back on ubuntu-24.04. macOS and Windows jobs are unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01UhhZMBTviDQxZvwnyP89fo --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c319b1..e38f5cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,7 +57,7 @@ jobs: plan: name: Plan (affected crates) if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]') - runs-on: ubuntu-24.04 + runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }} timeout-minutes: 15 permissions: contents: read @@ -117,7 +117,7 @@ jobs: ci: name: cargo xtask ci needs: plan - runs-on: ubuntu-24.04 + runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }} timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -149,7 +149,7 @@ jobs: name: cargo xtask test --heavy needs: plan if: github.event_name != 'pull_request' && (needs.plan.outputs.solver == 'true' || needs.plan.outputs.everything == 'true') - runs-on: ubuntu-24.04 + runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }} timeout-minutes: 60 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -168,7 +168,7 @@ jobs: name: cargo xtask oracle needs: plan if: needs.plan.outputs.solver == 'true' || needs.plan.outputs.everything == 'true' - runs-on: ubuntu-24.04 + runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }} timeout-minutes: 45 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -219,7 +219,7 @@ jobs: advisories: name: Dependency licences, advisories and sources if: github.event.schedule != '41 4 * * 0' && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository || github.event.pull_request.user.login == 'dependabot[bot]') - runs-on: ubuntu-24.04 + runs-on: ${{ github.event_name != 'pull_request' && vars.SELF_HOSTED_RUNNER || 'ubuntu-24.04' }} timeout-minutes: 20 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1