Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Update to `ubuntu-26.04` in CI (#14423)

Alex Crichton2cb94a731bf2
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 1f6a01e7c0..f702a216f4 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -66,7 +66,7 @@ jobs:
# Note that `wasmtime-platform.h` is excluded here as it's auto-generated.
clangformat:
name: Clang format
- runs-on: ubuntu-24.04
+ runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
with:
@@ -75,7 +75,7 @@ jobs:
git ls-files '*.h' '*.c' '*.cpp' '*.hh' '*.cc' | \
grep -v wasmtime-platform.h | \
grep -v wasm.h | \
- xargs clang-format-18 --dry-run --Werror --verbose
+ xargs clang-format-22 --dry-run --Werror --verbose
# Make sure our `clangformat.sh` helper script keeps running and stays
# in-sync with the previous check.
- run: crates/c-api/clangformat.sh
@@ -804,7 +804,7 @@ jobs:
# linking, and this is intended to be the "main set of tests".
#
# Run this on windows/mac/linux
- - os: ubuntu-24.04
+ - os: ubuntu-26.04
# Only run the "plugins" example on Linux
flags: -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=ON -DBUILD_RUST_EXAMPLES=ON -DBUILD_RUST_PLUGINS_EXAMPLE=ON
name: Linux
@@ -821,12 +821,12 @@ jobs:
# This tests using static linking for examples but skips building the
# Rust examples as well as C/C++ tests. Intended to be a faster build
# which mostly just tests static linking.
- - os: ubuntu-24.04
+ - os: ubuntu-26.04
flags: -DBUILD_SHARED_LIBS=OFF -DBUILD_RUST_EXAMPLES=OFF
name: Linux (static linking)
# Run tests with ASAN for leak checking primarily.
- - os: ubuntu-24.04
+ - os: ubuntu-26.04
flags: -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DBUILD_SHARED_LIBS=ON -DBUILD_TESTS=ON
name: Linux (ASAN)
steps:
@@ -1114,7 +1114,7 @@ jobs:
needs: determine
if: needs.determine.outputs.run-dwarf
name: Test DWARF debugging
- runs-on: ubuntu-24.04
+ runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
with:
@@ -1145,7 +1145,7 @@ jobs:
needs: determine
if: needs.determine.outputs.run-dwarf
name: Test guest debugging
- runs-on: ubuntu-24.04
+ runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
with:
diff --git a/ci/build-build-matrix.js b/ci/build-build-matrix.js
index 6695c511d3..07426347de 100644
--- a/ci/build-build-matrix.js
+++ b/ci/build-build-matrix.js
@@ -4,7 +4,7 @@
// This is a separate script primarily to write out all the release
// targets/platforms once and then duplicate them all with a "min" build.
-const ubuntu = 'ubuntu-24.04';
+const ubuntu = 'ubuntu-26.04';
const windows = 'windows-2025';
const macos = 'macos-15';
diff --git a/ci/build-test-matrix.js b/ci/build-test-matrix.js
index d556428810..9024dfaf04 100644
--- a/ci/build-test-matrix.js
+++ b/ci/build-test-matrix.js
@@ -43,7 +43,7 @@ function singleBucketCrateName(entry) {
return typeof entry === "string" ? entry : entry.crate;
}
-const ubuntu = 'ubuntu-24.04';
+const ubuntu = 'ubuntu-26.04';
const windows = 'windows-2025';
const macos = 'macos-15';
diff --git a/crates/c-api/clangformat.sh b/crates/c-api/clangformat.sh
index 69ce57d504..520b40044c 100755
--- a/crates/c-api/clangformat.sh
+++ b/crates/c-api/clangformat.sh
@@ -7,4 +7,4 @@ cd $(dirname $0)/../..
git ls-files '*.h' '*.c' '*.cpp' '*.hh' '*.cc' | \
grep -v wasmtime-platform.h | \
grep -v wasm.h | \
- xargs clang-format-18 -i
+ xargs clang-format-22 -i
diff --git a/crates/wasmtime/src/runtime/vm/helpers.c b/crates/wasmtime/src/runtime/vm/helpers.c
index 3eff066dbb..e0a23146bc 100644
--- a/crates/wasmtime/src/runtime/vm/helpers.c
+++ b/crates/wasmtime/src/runtime/vm/helpers.c
@@ -52,7 +52,7 @@ __attribute__((weak)) extern void __unw_add_dynamic_fde(uintptr_t);
#ifndef CFG_TARGET_OS_macos
__attribute__((weak)) extern void __unw_add_dynamic_eh_frame_section(uintptr_t);
__attribute__((weak)) extern void
- __unw_remove_dynamic_eh_frame_section(uintptr_t);
+__unw_remove_dynamic_eh_frame_section(uintptr_t);
#endif
struct Libunwind VERSIONED_SYMBOL(wasmtime_libunwind)(void) {
diff --git a/crates/wasmtime/tests/pooling_alloc_near_oom.rs b/crates/wasmtime/tests/pooling_alloc_near_oom.rs
index 3c645c100a..0d454f0eb8 100644
--- a/crates/wasmtime/tests/pooling_alloc_near_oom.rs
+++ b/crates/wasmtime/tests/pooling_alloc_near_oom.rs
@@ -70,7 +70,9 @@ mod unix {
// happens.
let mut stores = Vec::new();
loop {
- let mut store = Store::new(&engine, ());
+ let Ok(mut store) = Store::try_new(&engine, ()) else {
+ break;
+ };
if Instance::new(&mut store, &module, &[]).is_ok() {
stores.push(store);
} else {