From 22de90bc1e57063b02229550fe8002172bbf6583 Mon Sep 17 00:00:00 2001 From: Isuru Fernando Date: Wed, 20 Mar 2024 12:15:38 -0500 Subject: [PATCH] Support Apple silicon runners on GHA --- conda_smithy/configure_feedstock.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conda_smithy/configure_feedstock.py b/conda_smithy/configure_feedstock.py index bdfcc99b9..71ccb8ae9 100644 --- a/conda_smithy/configure_feedstock.py +++ b/conda_smithy/configure_feedstock.py @@ -1430,26 +1430,32 @@ def _github_actions_specific_setup( runs_on = { "osx-64": { "os": "macos", + "hosted_labels": ("macos-latest",), "self_hosted_labels": ("macOS", "x64"), }, "osx-arm64": { "os": "macos", + "hosted_labels": ("macos-14",), "self_hosted_labels": ("macOS", "arm64"), }, "linux-64": { "os": "ubuntu", + "hosted_labels": ("ubuntu-latest",), "self_hosted_labels": ("linux", "x64"), }, "linux-aarch64": { "os": "ubuntu", + "hosted_labels": ("ubuntu-latest",), "self_hosted_labels": ("linux", "ARM64"), }, "win-64": { "os": "windows", + "hosted_labels": ("windows-latest",), "self_hosted_labels": ("windows", "x64"), }, "win-arm64": { "os": "windows", + "hosted_labels": ("windows-latest",), "self_hosted_labels": ("windows", "ARM64"), }, } @@ -1467,7 +1473,7 @@ def _github_actions_specific_setup( runs_on[data["build_platform"]]["self_hosted_labels"] ) self_hosted_default += ["self-hosted"] - hosted_default = [data["gha_os"] + "-latest"] + hosted_default = runs_on[data["build_platform"]]["hosted_labels"] labels_default = ( ["hosted"]