-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate CI tests on different engine
- Loading branch information
Showing
2 changed files
with
83 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,25 +19,27 @@ jobs: | |
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build850 | ||
- name: Build | ||
run: | | ||
rm -fr build | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D PHOTON_ENABLE_FUSE=ON \ | ||
-D PHOTON_ENABLE_URING=ON \ | ||
-D PHOTON_ENABLE_EXTFS=ON | ||
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1 | ||
- name: test | ||
cmake --build build -j $(nproc) -- VERBOSE=1 | ||
- name: Test epoll | ||
run: | | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test io_uring | ||
run: | | ||
cd build/output/ | ||
ctest -E test-lockfree --timeout 3600 -V | ||
export PHOTON_CI_EV_ENGINE=io_uring | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test epoll_ng | ||
run: | | ||
export PHOTON_CI_EV_ENGINE=epoll_ng | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
gcc921: | ||
runs-on: ubuntu-latest | ||
|
@@ -51,26 +53,28 @@ jobs: | |
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build921 | ||
- name: Build | ||
run: | | ||
source /opt/rh/gcc-toolset-9/enable | ||
rm -fr build | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D PHOTON_ENABLE_FUSE=ON \ | ||
-D PHOTON_ENABLE_URING=ON \ | ||
-D PHOTON_ENABLE_EXTFS=ON | ||
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1 | ||
- name: test | ||
cmake --build build -j $(nproc) -- VERBOSE=1 | ||
- name: Test epoll | ||
run: | | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test io_uring | ||
run: | | ||
cd build/output/ | ||
ctest -E test-lockfree --timeout 3600 -V | ||
export PHOTON_CI_EV_ENGINE=io_uring | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test epoll_ng | ||
run: | | ||
export PHOTON_CI_EV_ENGINE=epoll_ng | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
gcc1031: | ||
runs-on: ubuntu-latest | ||
|
@@ -84,26 +88,28 @@ jobs: | |
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build1031 | ||
- name: Build | ||
run: | | ||
source /opt/rh/gcc-toolset-10/enable | ||
rm -fr build | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D PHOTON_ENABLE_FUSE=ON \ | ||
-D PHOTON_ENABLE_URING=ON \ | ||
-D PHOTON_ENABLE_EXTFS=ON | ||
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1 | ||
- name: test | ||
cmake --build build -j $(nproc) -- VERBOSE=1 | ||
- name: Test epoll | ||
run: | | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test io_uring | ||
run: | | ||
cd build/output/ | ||
ctest -E test-lockfree --timeout 3600 -V | ||
export PHOTON_CI_EV_ENGINE=io_uring | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test epoll_ng | ||
run: | | ||
export PHOTON_CI_EV_ENGINE=epoll_ng | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
gcc1121: | ||
runs-on: ubuntu-latest | ||
|
@@ -117,26 +123,28 @@ jobs: | |
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build1121 | ||
- name: Build | ||
run: | | ||
source /opt/rh/gcc-toolset-11/enable | ||
rm -fr build | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D PHOTON_ENABLE_FUSE=ON \ | ||
-D PHOTON_ENABLE_URING=ON \ | ||
-D PHOTON_ENABLE_EXTFS=ON | ||
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1 | ||
- name: test | ||
cmake --build build -j $(nproc) -- VERBOSE=1 | ||
- name: Test epoll | ||
run: | | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test io_uring | ||
run: | | ||
cd build/output/ | ||
ctest -E test-lockfree --timeout 3600 -V | ||
export PHOTON_CI_EV_ENGINE=io_uring | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test epoll_ng | ||
run: | | ||
export PHOTON_CI_EV_ENGINE=epoll_ng | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
gcc1211: | ||
runs-on: ubuntu-latest | ||
|
@@ -150,26 +158,28 @@ jobs: | |
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build1211 | ||
- name: Build | ||
run: | | ||
source /opt/rh/gcc-toolset-12/enable | ||
rm -fr build | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D PHOTON_ENABLE_FUSE=ON \ | ||
-D PHOTON_ENABLE_URING=ON \ | ||
-D PHOTON_ENABLE_EXTFS=ON | ||
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1 | ||
- name: test | ||
cmake --build build -j $(nproc) -- VERBOSE=1 | ||
- name: Test epoll | ||
run: | | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test io_uring | ||
run: | | ||
cd build/output/ | ||
ctest -E test-lockfree --timeout 3600 -V | ||
export PHOTON_CI_EV_ENGINE=io_uring | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
- name: Test epoll_ng | ||
run: | | ||
export PHOTON_CI_EV_ENGINE=epoll_ng | ||
ctest -E test-lockfree --timeout 3600 -V | ||
cd build && ctest -E test-lockfree --timeout 3600 -V | ||
fstack: | ||
runs-on: ubuntu-latest | ||
|
@@ -178,8 +188,8 @@ jobs: | |
options: --cpus 4 --privileged | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build on FStack-DPDK | ||
run: | | ||
- name: Build | ||
run: | | ||
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D PHOTON_ENABLE_FSTACK_DPDK=ON | ||
|
@@ -191,10 +201,14 @@ jobs: | |
image: almalinux:8 | ||
options: --cpus 4 --privileged | ||
steps: | ||
- uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
- uses: actions/checkout@v4 | ||
- name: Build | ||
run: | | ||
export TZ=Asia/Shanghai | ||
dnf install -q -y git gcc-c++ cmake openssl-devel libcurl-devel libaio-devel zlib-devel epel-release | ||
dnf config-manager --set-enabled powertools | ||
dnf install -q -y gflags-devel snappy-devel zlib-devel bzip2-devel lz4-devel libzstd-devel | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,30 +11,30 @@ jobs: | |
runs-on: macos-13 | ||
|
||
steps: | ||
- uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
brew install cmake openssl gflags googletest gsasl | ||
- name: Build | ||
run: | | ||
cmake -B ${{github.workspace}}/build \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 | ||
cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu) | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -E test-lockfree --timeout 3600 -V | ||
- uses: szenius/[email protected] | ||
with: | ||
timezoneLinux: "Asia/Shanghai" | ||
timezoneMacos: "Asia/Shanghai" | ||
timezoneWindows: "China Standard Time" | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Dependencies | ||
shell: bash | ||
run: | | ||
brew install cmake openssl gflags googletest gsasl | ||
- name: Build | ||
run: | | ||
cmake -B ${{github.workspace}}/build \ | ||
-D PHOTON_ENABLE_ECOSYSTEM=ON \ | ||
-D PHOTON_BUILD_TESTING=ON \ | ||
-D CMAKE_BUILD_TYPE=MinSizeRel \ | ||
-D PHOTON_ENABLE_SASL=ON \ | ||
-D OPENSSL_ROOT_DIR=/usr/local/opt/openssl@3 | ||
cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu) | ||
- name: Test | ||
working-directory: ${{github.workspace}}/build | ||
run: ctest -E test-lockfree --timeout 3600 -V | ||
|