github: migrate all actions to ubuntu-24.04

This gets rid of an annoying warning in the Actions tab, but we already rely on
this for the build-binaries workflow, and it's probably better to be explicit
about this anyway.

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2025-01-06 17:12:36 -06:00
parent e6a51d6637
commit 252f6d8543
7 changed files with 17 additions and 17 deletions

View file

@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-14]
os: [ubuntu-24.04, macos-14]
runs-on: ${{ matrix.os }}
timeout-minutes: 15 # NOTE (aseipp): keep in-sync with the build.yml timeout limit

View file

@ -20,10 +20,10 @@ jobs:
fail-fast: false
matrix:
# macos-13 is x86; macos-14 is ARM
os: [ubuntu-latest, macos-13, macos-14, windows-latest]
os: [ubuntu-24.04, macos-13, macos-14, windows-latest]
cargo_flags: [""]
include:
- os: ubuntu-latest
- os: ubuntu-24.04
cargo_flags: "--all-features"
runs-on: ${{ matrix.os }}
@ -81,7 +81,7 @@ jobs:
build-no-git:
name: Build jj-lib without Git support
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@ -95,7 +95,7 @@ jobs:
check-protos:
name: Check protos
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
@ -109,7 +109,7 @@ jobs:
rustfmt:
name: Check formatting
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
@ -120,7 +120,7 @@ jobs:
check-doctests:
name: Run doctests
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@1482605bfc5719782e1267fd0c0cc350fe7646b8
@ -140,7 +140,7 @@ jobs:
mkdocs:
name: Check that MkDocs can build the docs
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
@ -158,7 +158,7 @@ jobs:
# An optional job to alert us when uv updates break the build
mkdocs-latest:
name: Check that MkDocs can build the docs with latest Python and uv
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install uv
@ -169,7 +169,7 @@ jobs:
run: uv run --python-preference=only-managed -- mkdocs build --strict
cargo-deny:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
strategy:
matrix:
checks:
@ -189,7 +189,7 @@ jobs:
name: Clippy check
permissions:
checks: write
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203

View file

@ -15,7 +15,7 @@ permissions: read-all
jobs:
codespell:
name: Codespell
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: codespell-project/actions-codespell@406322ec52dd7b488e48c1c4b82e2a8b3a1bf630

View file

@ -15,7 +15,7 @@ jobs:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge for Dependabot PRs

View file

@ -13,7 +13,7 @@ jobs:
if: github.repository_owner == 'martinvonz' # Stops this job from running on forks
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:

View file

@ -87,7 +87,7 @@ jobs:
asset_content_type: application/octet-stream
docs-release-archive:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write
@ -121,7 +121,7 @@ jobs:
asset_content_type: application/octet-stream
docs-deploy-website-latest-release:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: write

View file

@ -13,7 +13,7 @@ permissions: read-all
jobs:
analysis:
name: Scorecards analysis
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write