From 3970f04eb4bba03837ff4e67052f87c963a18f4d Mon Sep 17 00:00:00 2001 From: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> Date: Mon, 15 Jul 2024 16:15:55 -0500 Subject: [PATCH] Add support for Ubuntu 24 arm64 runner (#294) * Add support for Ubuntu 24 arm64 runner * Update macos runner --- .github/workflows/build-python-packages.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 7fcf4474..7c8e3966 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -15,7 +15,7 @@ on: PLATFORMS: description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)' required: true - default: 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-13_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' + default: 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-12_x64,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' pull_request: paths-ignore: - 'versions-manifest.json' @@ -39,7 +39,7 @@ jobs: - name: Generate execution matrix id: generate-matrix run: | - [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,macos-13,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' }}".Split(",").Trim() + [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,ubuntu-22.04_arm64,ubuntu-24.04,ubuntu-24.04_arm64,macos-12,macos-14_arm64,windows-2019_x64,windows-2019_x86,windows-2019_arm64' }}".Split(",").Trim() $matrix = @() foreach ($configuration in $configurations) { @@ -51,11 +51,17 @@ jobs: "*macos*" { $platform = 'darwin' } "*windows*" { $platform = 'win32' } } - if ($configuration -eq "ubuntu-22.04_arm64") { + + if ($configuration -eq "ubuntu-22.04_arm64") { $os = "setup-actions-ubuntu-arm64-2-core" - }elseif ($configuration -eq "windows-2019_arm64") { + } + elseif ($configuration -eq "ubuntu-24.04_arm64") { + $os = "setup-actions-ubuntu24-arm64-2-core" + } + elseif ($configuration -eq "windows-2019_arm64") { $os = "setup-actions-windows-arm64-4-core" } + $matrix += @{ 'platform' = $platform 'os' = $os