-
Notifications
You must be signed in to change notification settings - Fork 120
131 lines (121 loc) · 4.03 KB
/
ci.linux.compiler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
name: Linux Compiler
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
rm -f build/output/*.a
# find build/ -name "*.o" -type f -delete
tar -c --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
steps:
- name: download850
uses: actions/download-artifact@v4
with:
name: output850
- name: test
run: |
tar -x --use-compress-program=zstdmt -f output850.tzs
ls -R
cd build/output
ctest --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
rm -f build/output/*.a
tar -c --use-compress-program=pigz -f output921.tgz build/output/
- name: Upload921
uses: actions/upload-artifact@v4
with:
name: output921.tgz
path: output921.tgz
retention-days: 5
compression-level: 0
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
rm -f build/output/*.a
tar -c --use-compress-program=pigz -f output1031.tgz build/output/
- name: Upload1031
uses: actions/upload-artifact@v4
with:
name: output1031.tgz
path: output1031.tgz
retention-days: 5
compression-level: 0
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
rm -f build/output/*.a
tar -c --use-compress-program=pigz -f output1121.tgz build/output/
- name: Upload1121
uses: actions/upload-artifact@v4
with:
name: output1121.tgz
path: output1121.tgz
retention-days: 5
compression-level: 0
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
rm -f build/output/*.a
tar -c --use-compress-program=pigz -f output1211.tgz build/output/
- name: Upload1211
uses: actions/upload-artifact@v4
with:
name: output1211.tgz
path: output1211.tgz
retention-days: 5
compression-level: 0