Skip to content

Commit 0ce4b68

Browse files
[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).
1 parent a17a155 commit 0ce4b68

23 files changed

+31
-31
lines changed

Diff for: .github/workflows/build-metrics-container.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on:
2020
jobs:
2121
build-metrics-container:
2222
if: github.repository_owner == 'llvm'
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
outputs:
2525
container-name: ${{ steps.vars.outputs.container-name }}
2626
container-name-tag: ${{ steps.vars.outputs.container-name-tag }}

Diff for: .github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ on:
5151
jobs:
5252
check-docs-build:
5353
name: "Test documentation build"
54-
runs-on: ubuntu-latest
54+
runs-on: ubuntu-24.04
5555
if: github.repository == 'llvm/llvm-project'
5656
steps:
5757
# Don't fetch before checking for file changes to force the file changes

Diff for: .github/workflows/email-check.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
validate_email:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Fetch LLVM sources

Diff for: .github/workflows/issue-release-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ env:
3232
jobs:
3333
backport-commits:
3434
name: Backport Commits
35-
runs-on: ubuntu-latest
35+
runs-on: ubuntu-24.04
3636
permissions:
3737
issues: write
3838
pull-requests: write

Diff for: .github/workflows/issue-subscriber.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
auto-subscribe:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Checkout Automation Script

Diff for: .github/workflows/issue-write.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
pr-comment:
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
permissions:
1919
pull-requests: write
2020
if: >

Diff for: .github/workflows/libclang-abi-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
jobs:
2828
abi-dump-setup:
2929
if: github.repository_owner == 'llvm'
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
outputs:
3232
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
3333
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -83,7 +83,7 @@ jobs:
8383
abi-dump:
8484
if: github.repository_owner == 'llvm'
8585
needs: abi-dump-setup
86-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-24.04
8787
strategy:
8888
matrix:
8989
name:
@@ -137,7 +137,7 @@ jobs:
137137

138138
abi-compare:
139139
if: github.repository_owner == 'llvm'
140-
runs-on: ubuntu-latest
140+
runs-on: ubuntu-24.04
141141
needs:
142142
- abi-dump-setup
143143
- abi-dump

Diff for: .github/workflows/llvm-bugs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
auto-subscribe:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
if: github.repository == 'llvm/llvm-project'
1616
steps:
1717
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0

Diff for: .github/workflows/llvm-project-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
required: false
1515
os_list:
1616
required: false
17-
default: '["ubuntu-latest", "windows-2019", "macOS-13"]'
17+
default: '["ubuntu-24.04", "windows-2019", "macOS-13"]'
1818
python_version:
1919
required: false
2020
type: string
@@ -39,7 +39,7 @@ on:
3939
type: string
4040
# Use windows-2019 due to:
4141
# https://developercommunity.visualstudio.com/t/Prev-Issue---with-__assume-isnan-/1597317
42-
# Use ubuntu-22.04 rather than ubuntu-latest to match the ubuntu
42+
# Use ubuntu-22.04 rather than ubuntu-24.04 to match the ubuntu
4343
# version in the CI container. Without this, setup-python tries
4444
# to install a python version linked against a newer version of glibc.
4545
# TODO(boomanaiden154): Bump the Ubuntu version once the version in the

Diff for: .github/workflows/llvm-tests.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ concurrency:
2727
jobs:
2828
abi-dump-setup:
2929
if: github.repository_owner == 'llvm'
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-24.04
3131
outputs:
3232
BASELINE_REF: ${{ steps.vars.outputs.BASELINE_REF }}
3333
ABI_HEADERS: ${{ steps.vars.outputs.ABI_HEADERS }}
@@ -71,7 +71,7 @@ jobs:
7171
abi-dump:
7272
if: github.repository_owner == 'llvm'
7373
needs: abi-dump-setup
74-
runs-on: ubuntu-latest
74+
runs-on: ubuntu-24.04
7575
strategy:
7676
matrix:
7777
name:
@@ -141,7 +141,7 @@ jobs:
141141

142142
abi-compare:
143143
if: github.repository_owner == 'llvm'
144-
runs-on: ubuntu-latest
144+
runs-on: ubuntu-24.04
145145
needs:
146146
- abi-dump-setup
147147
- abi-dump

Diff for: .github/workflows/merged-prs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313

1414
jobs:
1515
buildbot_comment:
16-
runs-on: ubuntu-latest
16+
runs-on: ubuntu-24.04
1717
permissions:
1818
pull-requests: write
1919
if: >-

Diff for: .github/workflows/new-issues.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
automate-issues-labels:
1111
permissions:
1212
issues: write
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- uses: llvm/actions/issue-labeler@main

Diff for: .github/workflows/new-prs.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616

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

Diff for: .github/workflows/pr-code-format.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
code_formatter:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515
timeout-minutes: 30
1616
concurrency:
1717
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}

Diff for: .github/workflows/pr-request-release-note.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
github.repository_owner == 'llvm' &&
1515
startsWith(github.ref, 'refs/heads/release')
1616
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
steps:
1919
# We need to pull the script from the main branch, so that we ensure
2020
# we get the latest version of this script.

Diff for: .github/workflows/pr-subscriber.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010

1111
jobs:
1212
auto-subscribe:
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-24.04
1414
if: github.repository == 'llvm/llvm-project'
1515
steps:
1616
- name: Checkout Automation Script

Diff for: .github/workflows/release-documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929
jobs:
3030
release-documentation:
3131
name: Build and Upload Release Documentation
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-24.04
3333
env:
3434
upload: ${{ inputs.upload && !contains(inputs.release-version, 'rc') }}
3535
steps:

Diff for: .github/workflows/release-doxygen.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333
jobs:
3434
release-doxygen:
3535
name: Build and Upload Release Doxygen
36-
runs-on: ubuntu-latest
36+
runs-on: ubuntu-24.04
3737
permissions:
3838
contents: write
3939
env:

Diff for: .github/workflows/release-lit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ on:
2525
jobs:
2626
release-lit:
2727
name: Release Lit
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-24.04
2929
steps:
3030
- name: Checkout LLVM
3131
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

Diff for: .github/workflows/release-sources.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
outputs:
4848
ref: ${{ steps.inputs.outputs.ref }}
4949
export-args: ${{ steps.inputs.outputs.export-args }}
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-24.04
5151
steps:
5252
- id: inputs
5353
run: |
@@ -63,7 +63,7 @@ jobs:
6363
release-sources:
6464
name: Package Release Sources
6565
if: github.repository_owner == 'llvm'
66-
runs-on: ubuntu-latest
66+
runs-on: ubuntu-24.04
6767
needs:
6868
- inputs
6969
permissions:

Diff for: .github/workflows/release-tasks.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
jobs:
1313
validate-tag:
1414
name: Validate Tag
15-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-24.04
1616
if: github.repository == 'llvm/llvm-project'
1717
outputs:
1818
release-version: ${{ steps.validate-tag.outputs.release-version }}
@@ -26,7 +26,7 @@ jobs:
2626
2727
release-create:
2828
name: Create a New Release
29-
runs-on: ubuntu-latest
29+
runs-on: ubuntu-24.04
3030
permissions:
3131
contents: write # For creating the release.
3232
needs: validate-tag

Diff for: .github/workflows/scorecard.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121
jobs:
2222
analysis:
2323
name: Scorecard analysis
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-24.04
2525
if: github.repository == 'llvm/llvm-project'
2626
permissions:
2727
# Needed to upload the results to code-scanning dashboard.

Diff for: .github/workflows/version-check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414
jobs:
1515
version_check:
1616
if: github.repository_owner == 'llvm'
17-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
1818
steps:
1919
- name: Fetch LLVM sources
2020
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)