From a6b1bd8b5c7fa5a85c0481188dd43eeb05a543e2 Mon Sep 17 00:00:00 2001 From: wokron Date: Tue, 21 Jul 2026 13:34:17 +0800 Subject: [PATCH 1/5] rename workflows --- ...and-test-latest-kernel.yml => ci-latest-kernel.yml} | 0 .github/workflows/{build-and-test.yml => ci-main.yml} | 0 .../{static-check.yml => ci-static-check.yml} | 0 ...and-test-liburing-versions.yml => ci-toolchain.yml} | 2 +- .../{deploy-gh-pages.yaml => deploy-docs.yml} | 0 README.md | 10 +++++----- 6 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{build-and-test-latest-kernel.yml => ci-latest-kernel.yml} (100%) rename .github/workflows/{build-and-test.yml => ci-main.yml} (100%) rename .github/workflows/{static-check.yml => ci-static-check.yml} (100%) rename .github/workflows/{build-and-test-liburing-versions.yml => ci-toolchain.yml} (98%) rename .github/workflows/{deploy-gh-pages.yaml => deploy-docs.yml} (100%) diff --git a/.github/workflows/build-and-test-latest-kernel.yml b/.github/workflows/ci-latest-kernel.yml similarity index 100% rename from .github/workflows/build-and-test-latest-kernel.yml rename to .github/workflows/ci-latest-kernel.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/ci-main.yml similarity index 100% rename from .github/workflows/build-and-test.yml rename to .github/workflows/ci-main.yml diff --git a/.github/workflows/static-check.yml b/.github/workflows/ci-static-check.yml similarity index 100% rename from .github/workflows/static-check.yml rename to .github/workflows/ci-static-check.yml diff --git a/.github/workflows/build-and-test-liburing-versions.yml b/.github/workflows/ci-toolchain.yml similarity index 98% rename from .github/workflows/build-and-test-liburing-versions.yml rename to .github/workflows/ci-toolchain.yml index 1680ebac..72bce087 100644 --- a/.github/workflows/build-and-test-liburing-versions.yml +++ b/.github/workflows/ci-toolchain.yml @@ -1,4 +1,4 @@ -name: CI (Versions) +name: CI (Toolchain) on: push: diff --git a/.github/workflows/deploy-gh-pages.yaml b/.github/workflows/deploy-docs.yml similarity index 100% rename from .github/workflows/deploy-gh-pages.yaml rename to .github/workflows/deploy-docs.yml diff --git a/README.md b/README.md index 5fb05210..d9db9e43 100644 --- a/README.md +++ b/README.md @@ -5,11 +5,11 @@ ![Release](https://img.shields.io/github/v/release/wokron/condy) ![Stars](https://img.shields.io/github/stars/wokron/condy?style=social) -![CI (Main)](https://github.com/wokron/condy/actions/workflows/build-and-test.yml/badge.svg?branch=master) -![CI (Latest Kernel)](https://github.com/wokron/condy/actions/workflows/build-and-test-latest-kernel.yml/badge.svg?branch=master) -![CI (Versions)](https://github.com/wokron/condy/actions/workflows/build-and-test-liburing-versions.yml/badge.svg?branch=master) -![CI (Static Check)](https://github.com/wokron/condy/actions/workflows/static-check.yml/badge.svg?branch=master) -![Deploy Docs](https://github.com/wokron/condy/actions/workflows/deploy-gh-pages.yaml/badge.svg?branch=master) +![CI (Main)](https://github.com/wokron/condy/actions/workflows/ci-main.yml/badge.svg?branch=master) +![CI (Latest Kernel)](https://github.com/wokron/condy/actions/workflows/ci-latest-kernel.yml/badge.svg?branch=master) +![CI (Toolchain)](https://github.com/wokron/condy/actions/workflows/ci-toolchain.yml/badge.svg?branch=master) +![CI (Static Check)](https://github.com/wokron/condy/actions/workflows/ci-static-check.yml/badge.svg?branch=master) +![Deploy Docs](https://github.com/wokron/condy/actions/workflows/deploy-docs.yml/badge.svg?branch=master) ***C++ Asynchronous System Call Layer for Linux, Powered by io_uring and C++20 Coroutines*** From ea35a260a09fe0f6df12268d005ad0f9ef5aebd6 Mon Sep 17 00:00:00 2001 From: wokron Date: Tue, 21 Jul 2026 13:37:36 +0800 Subject: [PATCH 2/5] update ci-toolchain matrix --- .github/workflows/ci-toolchain.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-toolchain.yml b/.github/workflows/ci-toolchain.yml index 72bce087..da930d6a 100644 --- a/.github/workflows/ci-toolchain.yml +++ b/.github/workflows/ci-toolchain.yml @@ -21,6 +21,10 @@ jobs: fail-fast: false matrix: liburing-version: [ "2.3", "2.14" ] + compiler: + - { cc: gcc, cxx: g++ } + - { cc: clang, cxx: clang++ } + generator: [ "Ninja", "Unix Makefiles" ] steps: - name: Checkout Repository and Submodules @@ -38,11 +42,12 @@ jobs: - name: Configure CMake run: | cmake -B ${{github.workspace}}/build \ + -G "${{ matrix.generator }}" \ -DBUILD_EXAMPLES=ON \ -DBUILD_BENCHMARKS=ON \ -DBUILD_TESTS=ON \ - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_C_COMPILER=${{ matrix.compiler.cc }} \ + -DCMAKE_CXX_COMPILER=${{ matrix.compiler.cxx }} \ -DCMAKE_BUILD_TYPE=Debug - name: Build From 41c32999a67c50397cafee1aa6e3a76d11e31ee3 Mon Sep 17 00:00:00 2001 From: wokron Date: Tue, 21 Jul 2026 16:25:45 +0800 Subject: [PATCH 3/5] ci-main use RelWithDebInfo --- .github/workflows/ci-main.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 3f8b884f..f0f81278 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -26,7 +26,6 @@ jobs: compiler: - { cc: clang, cxx: clang++ } - { cc: gcc, cxx: g++ } - build-type: [ Debug, Release ] sanitizer: [ tsan, asan ] steps: @@ -69,19 +68,17 @@ jobs: $SANITIZER_FLAG \ -DCMAKE_C_COMPILER=${{matrix.compiler.cc}} \ -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} \ - -DCMAKE_BUILD_TYPE=${{matrix.build-type}} + -DCMAKE_BUILD_TYPE=RelWithDebInfo - name: Build - run: cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}} - -j$(nproc) + run: cmake --build ${{github.workspace}}/build --config RelWithDebInfo -j$(nproc) - name: Run Tests timeout-minutes: 5 working-directory: ${{github.workspace}}/build - run: ctest --verbose -C ${{matrix.build-type}} + run: ctest --verbose -C RelWithDebInfo - name: Run Benchmarks timeout-minutes: 5 - if: matrix.build-type == 'Release' working-directory: ${{github.workspace}} run: bash scripts/run-bench.sh -t 60 build/benchmarks From 5ea16d1cb58097ac0d8d758dba280a927bbcead4 Mon Sep 17 00:00:00 2001 From: wokron Date: Tue, 21 Jul 2026 16:27:42 +0800 Subject: [PATCH 4/5] remove useless config --- .github/workflows/ci-latest-kernel.yml | 2 +- .github/workflows/ci-main.yml | 4 ++-- .github/workflows/ci-toolchain.yml | 4 ++-- docs/build.md | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-latest-kernel.yml b/.github/workflows/ci-latest-kernel.yml index 4a3ce044..bde07374 100644 --- a/.github/workflows/ci-latest-kernel.yml +++ b/.github/workflows/ci-latest-kernel.yml @@ -78,7 +78,7 @@ jobs: -DTESTS_STATIC_LINK=ON - name: Build - run: cmake --build ${{github.workspace}}/build --config Release -j$(nproc) + run: cmake --build ${{github.workspace}}/build -j$(nproc) - name: Run Tests on QEMU timeout-minutes: 15 diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index f0f81278..8b5e814a 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -71,12 +71,12 @@ jobs: -DCMAKE_BUILD_TYPE=RelWithDebInfo - name: Build - run: cmake --build ${{github.workspace}}/build --config RelWithDebInfo -j$(nproc) + run: cmake --build ${{github.workspace}}/build -j$(nproc) - name: Run Tests timeout-minutes: 5 working-directory: ${{github.workspace}}/build - run: ctest --verbose -C RelWithDebInfo + run: ctest --verbose - name: Run Benchmarks timeout-minutes: 5 diff --git a/.github/workflows/ci-toolchain.yml b/.github/workflows/ci-toolchain.yml index da930d6a..691d4531 100644 --- a/.github/workflows/ci-toolchain.yml +++ b/.github/workflows/ci-toolchain.yml @@ -51,9 +51,9 @@ jobs: -DCMAKE_BUILD_TYPE=Debug - name: Build - run: cmake --build ${{github.workspace}}/build --config Debug -j$(nproc) + run: cmake --build ${{github.workspace}}/build -j$(nproc) - name: Run Tests timeout-minutes: 5 working-directory: ${{github.workspace}}/build - run: ctest --verbose -C Debug + run: ctest --verbose diff --git a/docs/build.md b/docs/build.md index 280f14fd..859602e5 100644 --- a/docs/build.md +++ b/docs/build.md @@ -51,7 +51,7 @@ cmake -B build -S . \ -DBUILD_BENCHMARKS=ON \ -DBUILD_TESTS=ON \ -DCMAKE_BUILD_TYPE=Release -cmake --build build --config Release -j$(nproc) +cmake --build build -j$(nproc) ``` After building: From ab6a73b5d8508c38e4f6be865e53b8e229b2b022 Mon Sep 17 00:00:00 2001 From: wokron Date: Tue, 21 Jul 2026 19:58:53 +0800 Subject: [PATCH 5/5] split static-check into two jobs --- .github/workflows/ci-static-check.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci-static-check.yml b/.github/workflows/ci-static-check.yml index e46ef784..6c623207 100644 --- a/.github/workflows/ci-static-check.yml +++ b/.github/workflows/ci-static-check.yml @@ -13,7 +13,18 @@ on: - "**.md" jobs: - static-check: + formatting: + runs-on: ubuntu-26.04 + timeout-minutes: 2 + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Formatting Check + run: bash ./scripts/format-all.sh + + static-analysis: runs-on: ubuntu-26.04 timeout-minutes: 10 @@ -23,10 +34,6 @@ jobs: with: submodules: true - - name: Formatting Check - run: | - bash ./scripts/format-all.sh - - name: Configure liburing run: | cd third_party/liburing @@ -44,5 +51,4 @@ jobs: -DCMAKE_EXPORT_COMPILE_COMMANDS=ON - name: Static Analysis - run: | - bash ./scripts/check-all.sh + run: bash ./scripts/check-all.sh