-
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
Merged
Merged
Changes from 57 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
3e8e932
ci.compiler
lihuiba 68c81e2
fix
lihuiba a276b43
fix
lihuiba b8aebcf
fix
lihuiba d8ecc3b
fix
lihuiba 983f224
fix
lihuiba f1fe8f8
fix
lihuiba 75f2355
fix
lihuiba a82bede
fix
lihuiba 4e00bba
fix
lihuiba 3e0e52d
fix
lihuiba 23316a3
fix
lihuiba 038725d
fix
lihuiba 299ede9
fix
lihuiba fd43830
fix
lihuiba 4f5a21a
fix
lihuiba f5bf683
fix
lihuiba e1b8c66
fix
lihuiba df84ffa
fix
lihuiba e03150f
fxi
lihuiba 31a226d
fix
lihuiba 97a146e
fix
lihuiba a99fdc1
fix
lihuiba a03b512
fix
lihuiba dd43998
fix
lihuiba 5354f15
fix
lihuiba a4b349a
fix
lihuiba 48a2c6c
fix
lihuiba b00db66
fix
lihuiba c1605c8
fix
lihuiba 23565c5
fix
lihuiba 00c796a
fix
lihuiba 305771f
fix
lihuiba 4046b70
fix
lihuiba 4c3b431
fix
lihuiba 718227c
fix
lihuiba e6f22a6
fix
lihuiba 90c5625
fix
lihuiba 45f2a88
fix
lihuiba 9548910
fix
lihuiba b466137
fix
lihuiba ca93f8e
fix
lihuiba 4c3bfed
fix
lihuiba a58c2fd
fix
lihuiba d62b4c1
fix
lihuiba ec2c547
fix
lihuiba 821edda
fix
lihuiba d112665
fix
lihuiba e2c6301
fix
lihuiba 436bbaf
fix
lihuiba e75f23b
fix
lihuiba 5d6c76e
fix
lihuiba 4fe4a64
fix
lihuiba 5866440
fix
lihuiba 5f575a8
fix
lihuiba 2ef1ed2
fix
lihuiba 211b1cb
fix
lihuiba 60bd69b
fix
lihuiba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -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 | ||
|
||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.