Skip to content

Commit

Permalink
ci: Pin ubuntu-24.04 for Actions runners
Browse files Browse the repository at this point in the history
Several of our GitHub Actions runners are running on `ubuntu-latest`, making the actions vulnerable to breakage when a new LTS version of Ubuntu is released. Therefore, we should pin to a specific version of Ubuntu.

Pinning to `ubuntu-24.04` because that is currently the latest Ubuntu version, and all of our actions appear to be working at the moment.
  • Loading branch information
szokeasaurusrex committed Jan 21, 2025
1 parent 50301ea commit 6ee82e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
container: aarch64-musl

name: Linux ${{ matrix.arch }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -144,7 +144,7 @@ jobs:

node:
name: NPM Package
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [linux, macos, macos_universal, windows]

steps:
Expand Down Expand Up @@ -176,7 +176,7 @@ jobs:

python-base:
name: python (base)
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # pin@v1
Expand All @@ -197,7 +197,7 @@ jobs:

python:
name: python
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [linux, macos, macos_universal, windows, python-base]
steps:
- uses: actions/checkout@v3
Expand All @@ -223,7 +223,7 @@ jobs:

npm-distributions:
name: 'Build NPM distributions'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [linux, macos, macos_universal, windows]
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -265,7 +265,7 @@ jobs:

merge:
name: Create Release Artifact
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
needs: [linux, macos, macos_universal, windows, npm-distributions, node, python]
steps:
- uses: actions/upload-artifact/merge@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand All @@ -34,7 +34,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-24.04, macos-latest, windows-latest]

name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]

name: Test Node ${{ matrix.node-version }}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
required: false
jobs:
release:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
name: 'Release a new version'
steps:
- name: Get auth token
Expand Down

0 comments on commit 6ee82e9

Please sign in to comment.