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

new CI workflow for linux.x86 #494

Merged
merged 58 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
3e8e932
ci.compiler
lihuiba May 28, 2024
68c81e2
fix
lihuiba May 28, 2024
a276b43
fix
lihuiba May 28, 2024
b8aebcf
fix
lihuiba May 28, 2024
d8ecc3b
fix
lihuiba May 28, 2024
983f224
fix
lihuiba May 28, 2024
f1fe8f8
fix
lihuiba May 28, 2024
75f2355
fix
lihuiba May 28, 2024
a82bede
fix
lihuiba May 28, 2024
4e00bba
fix
lihuiba May 28, 2024
3e0e52d
fix
lihuiba May 28, 2024
23316a3
fix
lihuiba May 28, 2024
038725d
fix
lihuiba May 28, 2024
299ede9
fix
lihuiba May 28, 2024
fd43830
fix
lihuiba May 28, 2024
4f5a21a
fix
lihuiba May 28, 2024
f5bf683
fix
lihuiba May 28, 2024
e1b8c66
fix
lihuiba May 28, 2024
df84ffa
fix
lihuiba May 29, 2024
e03150f
fxi
lihuiba May 29, 2024
31a226d
fix
lihuiba May 29, 2024
97a146e
fix
lihuiba May 29, 2024
a99fdc1
fix
lihuiba May 29, 2024
a03b512
fix
lihuiba May 29, 2024
dd43998
fix
lihuiba May 29, 2024
5354f15
fix
lihuiba May 29, 2024
a4b349a
fix
lihuiba May 29, 2024
48a2c6c
fix
lihuiba May 29, 2024
b00db66
fix
lihuiba May 29, 2024
c1605c8
fix
lihuiba May 29, 2024
23565c5
fix
lihuiba May 29, 2024
00c796a
fix
lihuiba May 29, 2024
305771f
fix
lihuiba May 29, 2024
4046b70
fix
lihuiba May 29, 2024
4c3b431
fix
lihuiba May 29, 2024
718227c
fix
lihuiba May 31, 2024
e6f22a6
fix
lihuiba May 31, 2024
90c5625
fix
lihuiba May 31, 2024
45f2a88
fix
lihuiba May 31, 2024
9548910
fix
lihuiba May 31, 2024
b466137
fix
lihuiba May 31, 2024
ca93f8e
fix
lihuiba May 31, 2024
4c3bfed
fix
lihuiba May 31, 2024
a58c2fd
fix
lihuiba May 31, 2024
d62b4c1
fix
lihuiba May 31, 2024
ec2c547
fix
lihuiba Jun 1, 2024
821edda
fix
lihuiba Jun 1, 2024
d112665
fix
lihuiba Jun 1, 2024
e2c6301
fix
lihuiba Jun 1, 2024
436bbaf
fix
lihuiba Jun 1, 2024
e75f23b
fix
lihuiba Jun 1, 2024
5d6c76e
fix
lihuiba Jun 1, 2024
4fe4a64
fix
lihuiba Jun 2, 2024
5866440
fix
lihuiba Jun 2, 2024
5f575a8
fix
lihuiba Jun 2, 2024
2ef1ed2
fix
lihuiba Jun 3, 2024
211b1cb
fix
lihuiba Jun 3, 2024
60bd69b
fix
lihuiba Jun 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci.linux.arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Collaborator

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.

Copy link
Collaborator Author

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.


- name: Test
run: |
cd build
ctest --timeout 3600 -V
ctest -E test-lockfree --timeout 3600 -V

centos8-gcc921-epoll-debug:
runs-on: [self-hosted, Linux, ARM64]
Expand Down Expand Up @@ -74,9 +74,9 @@ jobs:
source /opt/rh/gcc-toolset-9/enable
cmake -B build -D CMAKE_BUILD_TYPE=Debug -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

- name: Test
run: |
cd build
ctest --timeout 3600 -V
ctest -E test-lockfree --timeout 3600 -V
230 changes: 230 additions & 0 deletions .github/workflows/ci.linux.x86-64.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,230 @@
name: Linux x86 (new)

on:
push:
branches: [ "main", "release/*" ]
pull_request:
branches: [ "main", "release/*" ]

jobs:
gcc850:
runs-on: [self-hosted, compiler]
steps:
- uses: actions/checkout@v3
- name: Build850
run: |
rm -fr build
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_URING=ON \
-D PHOTON_ENABLE_EXTFS=ON \
# -D PHOTON_BUILD_DEPENDENCIES=ON \
# -D PHOTON_AIO_SOURCE="" \
# -D PHOTON_ZLIB_SOURCE="" \
# -D PHOTON_CURL_SOURCE="" \
# -D PHOTON_OPENSSL_SOURCE="" \
# -D PHOTON_GFLAGS_SOURCE="" \
# -D PHOTON_GOOGLETEST_SOURCE="" \
# -D PHOTON_URING_SOURCE=https://github.com/axboe/liburing/archive/refs/tags/liburing-2.3.tar.gz

cmake --build build -j $(nproc) --clean-first -- VERBOSE=1
ln -f common/checksum/test/checksum.in build/output/
tar -c -h --use-compress-program=zstdmt -f output850.tzs build/output/
- name: Upload850
uses: actions/upload-artifact@v4
with:
name: output850
path: output850.tzs
retention-days: 5
compression-level: 0

test850:
needs: gcc850
runs-on: ubuntu-latest
container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/download-artifact@v4
with:
name: output850
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output850.tzs
cd build/output/
ctest -E test-lockfree --timeout 3600 -V
export PHOTON_CI_EV_ENGINE=io_uring
ctest -E test-lockfree --timeout 3600 -V

gcc921:
needs: gcc850
runs-on: [self-hosted, compiler]
steps:
- name: Build921
run: |
source /opt/rh/gcc-toolset-9/enable
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1
ln -f common/checksum/test/checksum.in build/output/
tar -c --use-compress-program=zstdmt -f output921.tzs build/output/
- name: Upload921
uses: actions/upload-artifact@v4
with:
name: output921
path: output921.tzs
retention-days: 5
compression-level: 0

test921:
needs: gcc921
runs-on: ubuntu-latest
container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/download-artifact@v4
with:
name: output921
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output921.tzs
cd build/output/
ctest -E test-lockfree --timeout 3600 -V
export PHOTON_CI_EV_ENGINE=io_uring
ctest -E test-lockfree --timeout 3600 -V

gcc1031:
needs: gcc921
runs-on: [self-hosted, compiler]
steps:
- name: Build1031
run: |
source /opt/rh/gcc-toolset-10/enable
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1
ln -f common/checksum/test/checksum.in build/output/
tar -c --use-compress-program=zstdmt -f output1031.tzs build/output/
- name: Upload1031
uses: actions/upload-artifact@v4
with:
name: output1031
path: output1031.tzs
retention-days: 5
compression-level: 0

test1031:
needs: gcc1031
runs-on: ubuntu-latest
container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/download-artifact@v4
with:
name: output1031
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output1031.tzs
cd build/output/
ctest -E test-lockfree --timeout 3600 -V
export PHOTON_CI_EV_ENGINE=io_uring
ctest -E test-lockfree --timeout 3600 -V

gcc1121:
needs: gcc1031
runs-on: [self-hosted, compiler]
steps:
- name: Build1121
run: |
source /opt/rh/gcc-toolset-10/enable
cmake --build build -j --clean-first -- VERBOSE=1
ln -f common/checksum/test/checksum.in build/output/
tar -c --use-compress-program=zstdmt -f output1121.tzs build/output/
- name: Upload1121
uses: actions/upload-artifact@v4
with:
name: output1121
path: output1121.tzs
retention-days: 5
compression-level: 0

test1121:
needs: gcc1121
runs-on: ubuntu-latest
container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/download-artifact@v4
with:
name: output1121
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output1121.tzs
cd build/output/
ctest -E test-lockfree --timeout 3600 -V
export PHOTON_CI_EV_ENGINE=io_uring
ctest -E test-lockfree --timeout 3600 -V

gcc1211:
needs: gcc1121
runs-on: [self-hosted, compiler]
steps:
- name: Build1211
run: |
source /opt/rh/gcc-toolset-10/enable
cmake --build build -j $(nproc) --clean-first -- VERBOSE=1
ln -f common/checksum/test/checksum.in build/output/
tar -c --use-compress-program=zstdmt -f output1211.tzs build/output/
- name: Upload1211
uses: actions/upload-artifact@v4
with:
name: output1211
path: output1211.tzs
retention-days: 5
compression-level: 0

test1211:
needs: gcc1211
runs-on: ubuntu-latest
container:
image: ghcr.io/coldwings/photon-ut-base:latest
options: --cpus 4
steps:
- uses: szenius/set-timezone@v1.2
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/download-artifact@v4
with:
name: output1211
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output1211.tzs
cd build/output/
ctest -E test-lockfree --timeout 3600 -V
export PHOTON_CI_EV_ENGINE=io_uring
ctest -E test-lockfree --timeout 3600 -V


119 changes: 0 additions & 119 deletions .github/workflows/ci.linux.x86.yml

This file was deleted.

Loading
Loading