Skip to content

Commit 15a1714

Browse files
authored
fix:revise version num (#16)
* fix:revise version num * feat(actions): add build & test check on macOS * fix(actions): add exclusion
1 parent 5ae2b13 commit 15a1714

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

.github/workflows/cmake-multi-platform.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,42 @@ jobs:
2323
#
2424
# To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list.
2525
matrix:
26-
os: [ubuntu-latest, windows-latest]
26+
os: [ubuntu-latest, windows-latest, macos-latest]
2727
build_type: [Release]
2828
c_compiler: [gcc, clang, cl]
29+
2930
include:
31+
# Windows
3032
- os: windows-latest
3133
c_compiler: cl
3234
cpp_compiler: cl
35+
- os: windows-latest
36+
c_compiler: gcc
37+
cpp_compiler: g++
38+
- os: windows-latest
39+
c_compiler: clang
40+
cpp_compiler: clang++
41+
42+
# Linux
3343
- os: ubuntu-latest
3444
c_compiler: gcc
3545
cpp_compiler: g++
3646
- os: ubuntu-latest
3747
c_compiler: clang
3848
cpp_compiler: clang++
39-
- os: windows-latest
40-
c_compiler: gcc
41-
- os: windows-latest
49+
50+
# macOS
51+
- os: macos-latest
4252
c_compiler: clang
53+
cpp_compiler: clang++
54+
4355
exclude:
4456
- os: ubuntu-latest
4557
c_compiler: cl
58+
- os: macos-latest
59+
c_compiler: cl
60+
- os: macos-latest
61+
c_compiler: gcc
4662

4763
steps:
4864
- uses: actions/checkout@v4

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
22

33
project(
44
async_logger
5-
VERSION 1.0.0
5+
VERSION 0.1.0
66
LANGUAGES CXX)
77

88
set(CMAKE_CXX_STANDARD 20)
@@ -22,7 +22,7 @@ else()
2222
FetchContent_Declare(
2323
ring_buffer
2424
GIT_REPOSITORY https://github.com/HuRuilizhen/ring_buffer.git
25-
GIT_TAG v1.0.3)
25+
GIT_TAG v0.1.0)
2626
FetchContent_MakeAvailable(ring_buffer)
2727
endif()
2828

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,13 @@ include(FetchContent)
9898
FetchContent_Declare(
9999
ring_buffer
100100
GIT_REPOSITORY https://github.com/HuRuilizhen/ring_buffer.git
101-
GIT_TAG v1.0.3
101+
GIT_TAG v0.1.0
102102
)
103103
# 2) async_logger itself
104104
FetchContent_Declare(
105105
async_logger
106106
GIT_REPOSITORY https://github.com/YourUser/async_logger.git
107-
GIT_TAG v1.0.0
107+
GIT_TAG v0.1.0
108108
)
109109
110110
FetchContent_MakeAvailable(ring_buffer async_logger)
@@ -219,4 +219,4 @@ sudo cmake --build build --target uninstall_async_logger
219219

220220
## Contributing
221221

222-
Contributions are welcome! Feel free to open issues or pull requests on GitHub.
222+
Contributions are welcome! Feel free to open issues or pull requests on GitHub.

0 commit comments

Comments
 (0)