[Github] Prefer ubuntu-24.04 over ubuntu-latest (#129936)

This patch replaces all instances of ubuntu-latest with ubuntu-24.04
(outside of the entries in libc++) based on the guidelines in the LLVM
CI best practices doc (https://llvm.org/docs/CIBestPractices.html).
This commit is contained in:
Aiden Grossman
2025-03-06 10:32:02 -08:00
committed by GitHub
parent a17a155081
commit 0ce4b685d2
23 changed files with 31 additions and 31 deletions

View File

@@ -20,7 +20,7 @@ on:
jobs:
build-metrics-container:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
container-name: ${{ steps.vars.outputs.container-name }}
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}

View File

@@ -51,7 +51,7 @@ on:
jobs:
check-docs-build:
name: "Test documentation build"
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
# Don't fetch before checking for file changes to force the file changes

View File

@@ -10,7 +10,7 @@ permissions:
jobs:
validate_email:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
- name: Fetch LLVM sources

View File

@@ -32,7 +32,7 @@ env:
jobs:
backport-commits:
name: Backport Commits
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
issues: write
pull-requests: write

View File

@@ -10,7 +10,7 @@ permissions:
jobs:
auto-subscribe:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
- name: Checkout Automation Script

View File

@@ -14,7 +14,7 @@ permissions:
jobs:
pr-comment:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write
if: >

View File

@@ -27,7 +27,7 @@ concurrency:
jobs:
abi-dump-setup:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -83,7 +83,7 @@ jobs:
abi-dump:
if: github.repository_owner == 'llvm'
needs: abi-dump-setup
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
name:
@@ -137,7 +137,7 @@ jobs:
abi-compare:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- abi-dump-setup
- abi-dump

View File

@@ -11,7 +11,7 @@ on:
jobs:
auto-subscribe:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0

View File

@@ -14,7 +14,7 @@ on:
required: false
os_list:
required: false
default: '["ubuntu-latest", "windows-2019", "macOS-13"]'
default: '["ubuntu-24.04", "windows-2019", "macOS-13"]'
python_version:
required: false
type: string
@@ -39,7 +39,7 @@ on:
type: string
# Use windows-2019 due to:
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
# Use ubuntu-22.04 rather than ubuntu-latest to match the ubuntu
# Use ubuntu-22.04 rather than ubuntu-24.04 to match the ubuntu
# version in the CI container. Without this, setup-python tries
# to install a python version linked against a newer version of glibc.
# TODO(boomanaiden154): Bump the Ubuntu version once the version in the

View File

@@ -27,7 +27,7 @@ concurrency:
jobs:
abi-dump-setup:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
outputs:
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -71,7 +71,7 @@ jobs:
abi-dump:
if: github.repository_owner == 'llvm'
needs: abi-dump-setup
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
name:
@@ -141,7 +141,7 @@ jobs:
abi-compare:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- abi-dump-setup
- abi-dump

View File

@@ -13,7 +13,7 @@ on:
jobs:
buildbot_comment:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write
if: >-

View File

@@ -10,7 +10,7 @@ jobs:
automate-issues-labels:
permissions:
issues: write
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
- uses: llvm/actions/issue-labeler@main

View File

@@ -16,7 +16,7 @@ on:
jobs:
greeter:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write
# Only comment on PRs that have been opened for the first time, by someone
@@ -56,7 +56,7 @@ jobs:
automate-prs-labels:
# Greet first so that only the author gets that notification.
needs: greeter
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
# Ignore PRs with more than 10 commits. Pull requests with a lot of
# commits tend to be accidents usually when someone made a mistake while trying
# to rebase. We want to ignore these pull requests to avoid excessive

View File

@@ -11,7 +11,7 @@ on:
jobs:
code_formatter:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}

View File

@@ -14,7 +14,7 @@ jobs:
github.repository_owner == 'llvm' &&
startsWith(github.ref, 'refs/heads/release')
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
# We need to pull the script from the main branch, so that we ensure
# we get the latest version of this script.

View File

@@ -10,7 +10,7 @@ permissions:
jobs:
auto-subscribe:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
steps:
- name: Checkout Automation Script

View File

@@ -29,7 +29,7 @@ on:
jobs:
release-documentation:
name: Build and Upload Release Documentation
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
steps:

View File

@@ -33,7 +33,7 @@ on:
jobs:
release-doxygen:
name: Build and Upload Release Doxygen
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write
env:

View File

@@ -25,7 +25,7 @@ on:
jobs:
release-lit:
name: Release Lit
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout LLVM
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

View File

@@ -47,7 +47,7 @@ jobs:
outputs:
ref: ${{ steps.inputs.outputs.ref }}
export-args: ${{ steps.inputs.outputs.export-args }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- id: inputs
run: |
@@ -63,7 +63,7 @@ jobs:
release-sources:
name: Package Release Sources
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs:
- inputs
permissions:

View File

@@ -12,7 +12,7 @@ on:
jobs:
validate-tag:
name: Validate Tag
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
outputs:
release-version: ${{ steps.validate-tag.outputs.release-version }}
@@ -26,7 +26,7 @@ jobs:
release-create:
name: Create a New Release
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write # For creating the release.
needs: validate-tag

View File

@@ -21,7 +21,7 @@ permissions:
jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: github.repository == 'llvm/llvm-project'
permissions:
# Needed to upload the results to code-scanning dashboard.

View File

@@ -14,7 +14,7 @@ permissions:
jobs:
version_check:
if: github.repository_owner == 'llvm'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Fetch LLVM sources
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2