From 9a705ff7c141945dbb5f985eb00c3e7e9fbd66f1 Mon Sep 17 00:00:00 2001 From: Simon Davies Date: Thu, 18 Dec 2025 11:43:11 +0000 Subject: [PATCH 1/2] Run co-pilot on 1ES KVM runner Signed-off-by: Simon Davies --- .github/workflows/copilot-setup-steps.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 54c02f322..66829ae60 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -6,7 +6,8 @@ on: workflow_dispatch jobs: # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. copilot-setup-steps: - runs-on: ubuntu-latest + # run on either intel or amd kvm runner based on run id last digit is even/odd + runs-on: ${{ (endsWith(github.run_id, '0') || endsWith(github.run_id, '2') || endsWith(github.run_id, '4') || endsWith(github.run_id, '6') || endsWith(github.run_id, '8')) && fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-amd"]') || fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-intel"]') }} # Set the permissions to the lowest permissions possible needed for your steps. # Copilot will be given its own token for its operations. From 2ea849f485352f70f6f9df49ca3787476afb45cb Mon Sep 17 00:00:00 2001 From: James Sturtevant Date: Thu, 18 Dec 2025 10:48:52 -0800 Subject: [PATCH 2/2] Update .github/workflows/copilot-setup-steps.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: James Sturtevant --- .github/workflows/copilot-setup-steps.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index 66829ae60..b118bd749 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -6,8 +6,8 @@ on: workflow_dispatch jobs: # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. copilot-setup-steps: - # run on either intel or amd kvm runner based on run id last digit is even/odd - runs-on: ${{ (endsWith(github.run_id, '0') || endsWith(github.run_id, '2') || endsWith(github.run_id, '4') || endsWith(github.run_id, '6') || endsWith(github.run_id, '8')) && fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-amd"]') || fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-intel"]') }} + # run on AMD when the run_id is even, Intel when the run_id is odd + runs-on: ${{ (github.run_id % 2 == 0) && fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-amd"]') || fromJSON('["self-hosted", "Linux", "X64", "1ES.Pool=hld-kvm-intel"]') }} # Set the permissions to the lowest permissions possible needed for your steps. # Copilot will be given its own token for its operations.