Update ubuntu-latest to 24.04
To match the github runner images.
The current situation, where ubuntu-latest refers to ubuntu-22.04, is a little confusing and can make debugging certain CI problems much harder.
There is a catthehacker/ubuntu:act-24.04 tag on docker. Edit: you are right act-latest is pointing to act-22.04.
Quickie for anyone else just trying this out:
❯ gh act push -P ubuntu-latest=catthehacker/ubuntu:act-24.04
if you're using the Github Local Actions extension for vscode, go to Extensions -> Github Local Actions -> Settings and set Act Command to act -P ubuntu-latest=catthehacker/ubuntu:act-24.04 (assuming you're using nektos/act)
Will be sort of resolved for act after https://github.com/nektos/act/pull/5951
There is still some work going on, but you can already try it out:
# Will need go toolchain installed.
git clone --branch chore/update-images-24.04 https://github.com/keks/act.git
make build
# See resulting binary in `dist/local/act`
Note that previous act settings are hardcoded in ~/.config/act/actrc and therefore it may not switch for latest to 24.04 automatically. In that case, you can reset the config - either by removing it completely or by removing lines that start with -P (sed -i '/^-P/d' ~/.config/act/actrc).
Resolved after https://github.com/catthehacker/docker_images/commit/be3464d0755cb4a0e31b80dc0195ce8ddebf345a