-
Notifications
You must be signed in to change notification settings - Fork 129
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
new CI workflow for linux.x86 #494
Conversation
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.
LGTM
Don't merge to 0.7, but master instead? |
@@ -37,12 +37,12 @@ jobs: | |||
source /opt/rh/gcc-toolset-9/enable | |||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel -D PHOTON_BUILD_TESTING=ON \ | |||
-D PHOTON_ENABLE_SASL=ON -D PHOTON_ENABLE_FUSE=ON -D PHOTON_ENABLE_EXTFS=ON | |||
cmake --build build -j -- VERBOSE=1 | |||
cmake --build build -j $(nproc) -- VERBOSE=1 |
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.
What's the default value of nproc? Didn't see the definition.
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.
it's the number of processors in current system.
CMake/build-from-src.cmake
Outdated
BUILD_COMMAND sh -c "V=1 CFLAGS=\"-fPIC -g -O3 -Wall -Wextra -fno-stack-protector\" $(MAKE) -C src" | ||
INSTALL_COMMAND $(MAKE) install | ||
BUILD_COMMAND sh -c "V=1 CFLAGS=\"-fPIC -O3 -Wall -Wextra -fno-stack-protector\" $(MAKE) -C src" | ||
# INSTALL_COMMAND $(MAKE) install |
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.
Keep this line?
examples/CMakeLists.txt
Outdated
@@ -1,21 +1,21 @@ | |||
add_definitions(-w) | |||
|
|||
add_executable(simple-example simple/simple.cpp) | |||
target_link_libraries(simple-example PRIVATE photon_static) | |||
target_link_libraries(simple-example PRIVATE photon_shared) | |||
|
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.
We'd better not change static libs to shared libs, because we usually need to copy example programs to other machines to run. An independent binary is convenient .
new CI workflow for linux.x86
* new CI workflow for linux.x86 (#494)
* new CI workflow for linux.x86 (#494) new CI workflow for linux.x86 * CI use images that pre-installed all deps (#505) * Manual pr 0.6 0.7 (#509) * FIX: lockfree MPMC queue should not fail to pop/push when queue is not empty/full (#504) * FIX: lockfree MPMC queue should not fail to pop/push when queue is not empty/full Signed-off-by: Coldwings <coldwings@me.com> * Old CI image not able to access repo, change to preset image Signed-off-by: Coldwings <coldwings@me.com> --------- Signed-off-by: Coldwings <coldwings@me.com> Co-authored-by: Coldwings <coldwings@me.com>
test-thread
into 2 separate test suites, for ease of handling event engine overriding (see below)and it outputs: