diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000000..1b609fc64e6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +name: CI + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - run: cmake -B build -DBUILD_SHARED_LIBS=OFF + - run: cmake --build build -j$(nproc) + - run: ctest --test-dir build --output-on-failure -j$(nproc) diff --git a/benchmarks/db_bench_sqlite3.cc b/benchmarks/db_bench_sqlite3.cc index f183f4fcfdf..45de779322d 100644 --- a/benchmarks/db_bench_sqlite3.cc +++ b/benchmarks/db_bench_sqlite3.cc @@ -5,6 +5,7 @@ #include #include #include +#include #include "util/histogram.h" #include "util/random.h" diff --git a/util/env_posix.cc b/util/env_posix.cc index 00bfd5986db..81af271e975 100644 --- a/util/env_posix.cc +++ b/util/env_posix.cc @@ -730,9 +730,9 @@ class PosixEnv : public Env { } private: - void BackgroundThreadMain(); + [[noreturn]] void BackgroundThreadMain(); - static void BackgroundThreadEntryPoint(PosixEnv* env) { + [[noreturn]] static void BackgroundThreadEntryPoint(PosixEnv* env) { env->BackgroundThreadMain(); } diff --git a/util/env_windows.cc b/util/env_windows.cc index 6ef27e456dd..43f117be126 100644 --- a/util/env_windows.cc +++ b/util/env_windows.cc @@ -675,9 +675,9 @@ class WindowsEnv : public Env { } private: - void BackgroundThreadMain(); + [[noreturn]] void BackgroundThreadMain(); - static void BackgroundThreadEntryPoint(WindowsEnv* env) { + [[noreturn]] static void BackgroundThreadEntryPoint(WindowsEnv* env) { env->BackgroundThreadMain(); }