Skip to content

Commit 584056c

Browse files
committed
Run GitHub Actions on Ubuntu 24.04
On Ubuntu the file /usr/bin/rename is managed through alternatives because there are multiple implementations. It appears that awalsh128/cache-apt-pkgs-action doesn't update alternatives when a package is cached which means /usr/bin/rename isn't present. The latest image will change to 24.04 on between December and January but on 24.04 there is rename.ul from util-linux which also provides the rename. That avoids the need to rely on awalsh128/cache-apt-pkgs-action for it and the alternatives interaction.
1 parent e9ee3d5 commit 584056c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/deploy.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ concurrency:
1717

1818
jobs:
1919
build:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v4
2424
with:
2525
persist-credentials: false
2626
- uses: awalsh128/cache-apt-pkgs-action@v1
2727
with:
28-
packages: calibre rename
28+
packages: calibre
2929
- name: Install and Build
3030
run: |
3131
npm install
@@ -46,7 +46,7 @@ jobs:
4646
environment:
4747
name: github-pages
4848
url: ${{ steps.deployment.outputs.page_url }}
49-
runs-on: ubuntu-latest
49+
runs-on: ubuntu-24.04
5050
steps:
5151
- name: Deploy to GitHub Pages
5252
id: deployment

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44

55
jobs:
66
build:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-24.04
88
steps:
99
- name: Checkout
1010
uses: actions/checkout@v4

0 commit comments

Comments
 (0)