Skip to content
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

Merged
merged 3 commits into from
Aug 7, 2023
Merged

Conversation

beef9999
Copy link
Collaborator

@beef9999 beef9999 commented Aug 5, 2023

No description provided.


container:
image: dokken/centos-stream-8:sha-40294ce
options: --cpus 4
Copy link
Collaborator Author

@beef9999 beef9999 Aug 5, 2023

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
Copy link
Collaborator Author

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI 现在使用-O3编译

@beef9999 beef9999 merged commit 01532bb into alibaba:main Aug 7, 2023
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants