-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use github self-hosted runner for CI #169
Conversation
|
||
container: | ||
image: dokken/centos-stream-8:sha-40294ce | ||
options: --cpus 4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RedHat不再给docker hub提供官方镜像,只提供在自己的quary.io仓库 ...
@@ -64,7 +64,7 @@ brew install cmake openssl pkg-config | |||
```bash | |||
cd PhotonLibOS | |||
cmake -B build | |||
cmake --build build -j | |||
cmake --build build |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmake默认的编译并发数是32,小配置机器用默认值很容易OOM,因此采用检测cpu数的方法,并作为新的默认值
# CMake didn't provide an abstraction of optimization level for now. | ||
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g") # For development | ||
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") # For production | ||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -g") # For CI test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CI 现在使用-O3编译
No description provided.