Skip to content

Commit

Permalink
Migrate to the ubuntu-24.04 GitHub Actions runner
Browse files Browse the repository at this point in the history
The ubuntu-20.04 runner is due to be deprecated on 2025-02-01 and
unsupported by 2025-04-01.

The ubuntu-24.04 runner doesn't include cbindgen so install it using
apt.
  • Loading branch information
Ortham committed Jan 13, 2025
1 parent cbe2c87 commit 785b49d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:

jobs:
rustfmt:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

Expand All @@ -21,7 +21,7 @@ jobs:
matrix:
os:
- windows-2019
- ubuntu-20.04
- ubuntu-24.04

runs-on: ${{ matrix.os }}

Expand All @@ -38,6 +38,11 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install cbindgen
run: |
sudo apt-get update
sudo apt-get install -y --no-upgrade cbindgen
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
if: runner.os == 'Linux'
Expand Down

0 comments on commit 785b49d

Please sign in to comment.