mirror of
https://github.com/godotengine/godot.git
synced 2025-01-23 02:52:28 -05:00
CI: Update Linux runners to Ubuntu 24.04
This commit is contained in:
parent
0f5f3bc954
commit
8d1462c748
9 changed files with 35 additions and 12 deletions
2
.github/workflows/android_builds.yml
vendored
2
.github/workflows/android_builds.yml
vendored
|
@ -14,7 +14,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
2
.github/workflows/godot_cpp_test.yml
vendored
2
.github/workflows/godot_cpp_test.yml
vendored
|
@ -15,7 +15,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
godot-cpp-tests:
|
godot-cpp-tests:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-24.04
|
||||||
name: Build and test Godot CPP
|
name: Build and test Godot CPP
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
|
7
.github/workflows/linux_builds.yml
vendored
7
.github/workflows/linux_builds.yml
vendored
|
@ -17,7 +17,8 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-20.04
|
# If unspecified, stay one LTS before latest to increase portability of Linux artifacts.
|
||||||
|
runs-on: ${{ matrix.os || 'ubuntu-22.04' }}
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
@ -60,6 +61,8 @@ jobs:
|
||||||
artifact: false
|
artifact: false
|
||||||
# Test our oldest supported SCons/Python versions on one arbitrary editor build.
|
# Test our oldest supported SCons/Python versions on one arbitrary editor build.
|
||||||
legacy-scons: true
|
legacy-scons: true
|
||||||
|
# Python 3.6 unavailable on 22.04.
|
||||||
|
os: ubuntu-20.04
|
||||||
|
|
||||||
- name: Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)
|
- name: Editor with ThreadSanitizer (target=editor, tests=yes, dev_build=yes, use_tsan=yes, use_llvm=yes, linker=lld)
|
||||||
cache-name: linux-editor-thread-sanitizer
|
cache-name: linux-editor-thread-sanitizer
|
||||||
|
@ -100,7 +103,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
sudo rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||||
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB8B81E14DA65431D7504EA8F63F0F2B90935439
|
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB8B81E14DA65431D7504EA8F63F0F2B90935439
|
||||||
sudo add-apt-repository "deb https://ppa.launchpadcontent.net/kisak/turtle/ubuntu focal main"
|
sudo add-apt-repository "deb https://ppa.launchpadcontent.net/kisak/turtle/ubuntu ${{ matrix.os == 'ubuntu-20.04' && 'focal' || 'jammy' }} main"
|
||||||
sudo apt-get install -qq mesa-vulkan-drivers
|
sudo apt-get install -qq mesa-vulkan-drivers
|
||||||
|
|
||||||
# TODO: Figure out somehow how to embed this one.
|
# TODO: Figure out somehow how to embed this one.
|
||||||
|
|
2
.github/workflows/static_checks.yml
vendored
2
.github/workflows/static_checks.yml
vendored
|
@ -9,7 +9,7 @@ concurrency:
|
||||||
jobs:
|
jobs:
|
||||||
static-checks:
|
static-checks:
|
||||||
name: Code style, file formatting, and docs
|
name: Code style, file formatting, and docs
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
2
.github/workflows/web_builds.yml
vendored
2
.github/workflows/web_builds.yml
vendored
|
@ -15,7 +15,7 @@ concurrency:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
web-template:
|
web-template:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-24.04
|
||||||
name: ${{ matrix.name }}
|
name: ${{ matrix.name }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
|
@ -662,15 +662,16 @@ PackedByteArray HTTPClientTCP::read_response_body_chunk() {
|
||||||
chunk_left -= rec;
|
chunk_left -= rec;
|
||||||
|
|
||||||
if (chunk_left == 0) {
|
if (chunk_left == 0) {
|
||||||
if (chunk[chunk.size() - 2] != '\r' || chunk[chunk.size() - 1] != '\n') {
|
const int chunk_size = chunk.size();
|
||||||
|
if (chunk[chunk_size - 2] != '\r' || chunk[chunk_size - 1] != '\n') {
|
||||||
ERR_PRINT("HTTP Invalid chunk terminator (not \\r\\n)");
|
ERR_PRINT("HTTP Invalid chunk terminator (not \\r\\n)");
|
||||||
status = STATUS_CONNECTION_ERROR;
|
status = STATUS_CONNECTION_ERROR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret.resize(chunk.size() - 2);
|
ret.resize(chunk_size - 2);
|
||||||
uint8_t *w = ret.ptrw();
|
uint8_t *w = ret.ptrw();
|
||||||
memcpy(w, chunk.ptr(), chunk.size() - 2);
|
memcpy(w, chunk.ptr(), chunk_size - 2);
|
||||||
chunk.clear();
|
chunk.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,6 +105,19 @@ Error PacketPeerUDP::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
|
||||||
return ERR_UNAVAILABLE;
|
return ERR_UNAVAILABLE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Bogus GCC warning here:
|
||||||
|
* In member function 'int RingBuffer<T>::read(T*, int, bool) [with T = unsigned char]',
|
||||||
|
* inlined from 'virtual Error PacketPeerUDP::get_packet(const uint8_t**, int&)' at core/io/packet_peer_udp.cpp:112:9,
|
||||||
|
* inlined from 'virtual Error PacketPeerUDP::get_packet(const uint8_t**, int&)' at core/io/packet_peer_udp.cpp:99:7:
|
||||||
|
* Error: ./core/ring_buffer.h:68:46: error: writing 1 byte into a region of size 0 [-Werror=stringop-overflow=]
|
||||||
|
* 68 | p_buf[dst++] = read[pos + i];
|
||||||
|
* | ~~~~~~~~~~~~~^~~~~~~
|
||||||
|
*/
|
||||||
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic warning "-Wstringop-overflow=0"
|
||||||
|
#endif
|
||||||
|
|
||||||
uint32_t size = 0;
|
uint32_t size = 0;
|
||||||
uint8_t ipv6[16] = {};
|
uint8_t ipv6[16] = {};
|
||||||
rb.read(ipv6, 16, true);
|
rb.read(ipv6, 16, true);
|
||||||
|
@ -115,6 +128,11 @@ Error PacketPeerUDP::get_packet(const uint8_t **r_buffer, int &r_buffer_size) {
|
||||||
--queue_count;
|
--queue_count;
|
||||||
*r_buffer = packet_buffer;
|
*r_buffer = packet_buffer;
|
||||||
r_buffer_size = size;
|
r_buffer_size = size;
|
||||||
|
|
||||||
|
#if defined(__GNUC__) && !defined(__clang__)
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -223,13 +223,13 @@ void StreamPeer::put_var(const Variant &p_variant, bool p_full_objects) {
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t StreamPeer::get_u8() {
|
uint8_t StreamPeer::get_u8() {
|
||||||
uint8_t buf[1];
|
uint8_t buf[1] = {};
|
||||||
get_data(buf, 1);
|
get_data(buf, 1);
|
||||||
return buf[0];
|
return buf[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
int8_t StreamPeer::get_8() {
|
int8_t StreamPeer::get_8() {
|
||||||
uint8_t buf[1];
|
uint8_t buf[1] = {};
|
||||||
get_data(buf, 1);
|
get_data(buf, 1);
|
||||||
return buf[0];
|
return buf[0];
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ void TileMap::_set_tile_map_data_using_compatibility_format(int p_layer, TileMap
|
||||||
for (int i = 0; i < c; i += offset) {
|
for (int i = 0; i < c; i += offset) {
|
||||||
const uint8_t *ptr = (const uint8_t *)&r[i];
|
const uint8_t *ptr = (const uint8_t *)&r[i];
|
||||||
uint8_t local[12];
|
uint8_t local[12];
|
||||||
for (int j = 0; j < ((p_format >= TileMapDataFormat::TILE_MAP_DATA_FORMAT_2) ? 12 : 8); j++) {
|
const int buffer_size = (format == TILE_MAP_DATA_FORMAT_2) ? 12 : 8;
|
||||||
|
for (int j = 0; j < buffer_size; j++) {
|
||||||
local[j] = ptr[j];
|
local[j] = ptr[j];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue