-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3.x] CI: Update Linux runners to Ubuntu 24.04, but keep 22.04 for Linux builds #98896
Conversation
const int buffer_size = (format == FORMAT_2) ? 12 : 8; | ||
for (int j = 0; j < buffer_size; j++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed to workaround a GCC false positive:
scene/2d/tile_map.cpp: In member function 'void TileMap::_set_tile_data(const PoolVector<int>&)':
Error: scene/2d/tile_map.cpp:1273:34: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
1273 | local[j] = ptr[j];
| ~~~~~~~~~^~~~~~~~
scene/2d/tile_map.cpp:1271:25: note: at offset 12 into destination object 'local' of size 12
1271 | uint8_t local[12];
| ^~~~~
4b6c3a1
to
fcdb825
Compare
Will current CI be updated to 24.04 as well, or is this just for |
fcdb825
to
525ac70
Compare
We should update 4.x branches too. The motivation is to be ready for the future removal of GH's |
Roger that |
525ac70
to
62983e8
Compare
I restored the Linux and Server builds to use Ubuntu 22.04 for portability. This also means Mono is still present in the image from GHA and doesn't need to be installed manually. For when we'd eventually move those to Ubuntu 24.04, here's how to install Mono too:
|
62983e8
to
4b0e1aa
Compare
871053a
to
e93ea1e
Compare
Pin clang-format to version 16, and black to 24.10.0. Keep using Ubuntu 22.04 for Linux builds for portability.
e93ea1e
to
fd9bd10
Compare
Finally got this working! |
Will leave for you to merge. 👍 |
Pin clang-format to version 161, and black to 24.10.0.
Mono needs to be reinstalled manually as they removed it in Ubuntu 24.04 images. (Still using the "focal" version, i.e. Ubuntu 20.04, as Mono upstream also no longer provides new versions for Ubuntu.)In the end we keep Ubuntu 22.04 for the Linux and Server builds for portability, so Mono is still provided.
Footnotes
Could go higher, GH provides 16, 17, and 18 (default) in its Ubuntu 24.04 runner, but at least locally my clang-format 19 implies a bunch of changes and since I want to cherry-pick this to old 3.x branches, where I don't want to bother reformatting code, I'm sticking to something close to the previous 15. ↩