Skip to content

Commit

Permalink
actions: Use ubuntu-24.04 instead of ubuntu-latest
Browse files Browse the repository at this point in the history
Use fixed version of Ubuntu runner. It prevents unexpected failures
when default Ubuntu runner is updated by GitHub.
It also limits number of changes which have to be backported to legacy
branches.

Signed-off-by: Jan Gałda <[email protected]>
  • Loading branch information
jangalda-nsc committed Jan 8, 2025
1 parent 5a083ee commit f5c6c05
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: pull_request

jobs:
compliance_job:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Run compliance checks on patch series (PR)
steps:
- name: Update PATH for west
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contribs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
contribs:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Contribs
steps:
- name: Contribs
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-upmerge-PRs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ env:
jobs:
auto-upmerge-create-PRs:
if: github.repository == 'nrfconnect/sdk-nrf'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: nrfconnect/action-checkout-west-update@main
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
gh pr create --base $PR_TARGET_BRANCH --title "manifest: Update revisions of upmerged projects (automatic upmerge)" --body "Automatic upmerge action" --label "CI-all-test" --label "auto-upmerge"
failure-notifier:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: failure()
needs: auto-upmerge-create-PRs
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dnm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
do-not-merge:
if: ${{ contains(github.event.*.labels.*.name, 'DNM') }}
name: Prevent Merging
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Check for label
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Checkout repository
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Download artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docremove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
remove:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Try removal of PR-docs
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/enforce-toolchain-synchronization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ on:
jobs:
check-prs:
if: ${{ github.repository_owner == 'nrfconnect' && !github.event.created }} # Skip for new branches or forks
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- name: Define list of files to check
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
triage:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ on:

jobs:
license_job:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Run license checks on patch series (PR)
steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

jobs:
manifest:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Manifest
steps:
- name: Checkout the code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/oss-history.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: pull_request

jobs:
contribs:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Check OSS history
steps:
- name: Checkout sources
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reapply-ci-trusted-author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
reapply_label:
name: Reapply label
if: ${{ contains(github.event.*.labels.*.name, 'CI-trusted-author') }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Remove CI-trusted-author label
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "CI-trusted-author"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-ci-requested.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
remove_label:
name: Remove label
if: ${{ contains(github.event.*.labels.*.name, 'CI-Requested') }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Remove label
run: gh pr edit ${{ github.event.pull_request.number }} --remove-label "CI-Requested"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scripts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
python-version: ['3.10', '3.11', '3.12', '3.13']
runs-on: ${{ matrix.os }}
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/src-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
zip-and-upload:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: nrfconnect/action-checkout-west-update@main
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
stale:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/stale@v9
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/west-commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

jobs:
west_commands_job:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: Run Python checks for west commands on patch series (PR)
steps:
- name: Checkout the code
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-13, windows-latest]
os: [ubuntu-24.04, macos-13, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
Expand Down

0 comments on commit f5c6c05

Please sign in to comment.