From 8b15f296ac08b52c8a158f8417ed58e66d965019 Mon Sep 17 00:00:00 2001 From: HuRuilizhen <122090168@link.cuhk.edu.cn> Date: Mon, 8 Sep 2025 04:14:05 +0800 Subject: [PATCH 1/3] fix:revise version num --- CMakeLists.txt | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30ffd69..f0514e0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) project( async_logger - VERSION 1.0.0 + VERSION 0.1.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) @@ -22,7 +22,7 @@ else() FetchContent_Declare( ring_buffer GIT_REPOSITORY https://github.com/HuRuilizhen/ring_buffer.git - GIT_TAG v1.0.3) + GIT_TAG v0.1.0) FetchContent_MakeAvailable(ring_buffer) endif() diff --git a/README.md b/README.md index 4f7df4d..4113ea3 100644 --- a/README.md +++ b/README.md @@ -98,13 +98,13 @@ include(FetchContent) FetchContent_Declare( ring_buffer GIT_REPOSITORY https://github.com/HuRuilizhen/ring_buffer.git - GIT_TAG v1.0.3 + GIT_TAG v0.1.0 ) # 2) async_logger itself FetchContent_Declare( async_logger GIT_REPOSITORY https://github.com/YourUser/async_logger.git - GIT_TAG v1.0.0 + GIT_TAG v0.1.0 ) FetchContent_MakeAvailable(ring_buffer async_logger) @@ -219,4 +219,4 @@ sudo cmake --build build --target uninstall_async_logger ## Contributing -Contributions are welcome! Feel free to open issues or pull requests on GitHub. \ No newline at end of file +Contributions are welcome! Feel free to open issues or pull requests on GitHub. From f4d43a293b23e34ed0a9a4f12a5f475648d8f826 Mon Sep 17 00:00:00 2001 From: HuRuilizhen <122090168@link.cuhk.edu.cn> Date: Mon, 8 Sep 2025 04:21:05 +0800 Subject: [PATCH 2/3] feat(actions): add build & test check on macOS --- .github/workflows/cmake-multi-platform.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 98f8d3b..ed5b331 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -23,26 +23,34 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest, windows-latest] + os: [ubuntu-latest, windows-latest, macos-latest] build_type: [Release] c_compiler: [gcc, clang, cl] + include: + # Windows - os: windows-latest c_compiler: cl cpp_compiler: cl + - os: windows-latest + c_compiler: gcc + cpp_compiler: g++ + - os: windows-latest + c_compiler: clang + cpp_compiler: clang++ + + # Linux - os: ubuntu-latest c_compiler: gcc cpp_compiler: g++ - os: ubuntu-latest c_compiler: clang cpp_compiler: clang++ - - os: windows-latest - c_compiler: gcc - - os: windows-latest + + # macOS + - os: macos-latest c_compiler: clang - exclude: - - os: ubuntu-latest - c_compiler: cl + cpp_compiler: clang++ steps: - uses: actions/checkout@v4 From 9bf8874bf69fef5de954ede2af4e0da3d82d744d Mon Sep 17 00:00:00 2001 From: HuRuilizhen <122090168@link.cuhk.edu.cn> Date: Mon, 8 Sep 2025 04:24:04 +0800 Subject: [PATCH 3/3] fix(actions): add exclusion --- .github/workflows/cmake-multi-platform.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index ed5b331..c189546 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -52,6 +52,14 @@ jobs: c_compiler: clang cpp_compiler: clang++ + exclude: + - os: ubuntu-latest + c_compiler: cl + - os: macos-latest + c_compiler: cl + - os: macos-latest + c_compiler: gcc + steps: - uses: actions/checkout@v4