forked from alibaba/PhotonLibOS
-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (85 loc) · 3.21 KB
/
Copy pathci.linux.arm.yml
File metadata and controls
92 lines (85 loc) · 3.21 KB
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
name: Linux ARM
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types: [opened, synchronize, reopened, unlabeled]
branches: [ "main", "release/*" ]
jobs:
arm-linux-build-and-test:
name: gcc${{ matrix.gcc }}-C++${{ matrix.cxx }}
if: ${{ !contains(github.event.pull_request.labels.*.name, 'needs-manual-merge') && (github.event.action != 'unlabeled' || github.event.label.name == 'needs-manual-merge') }}
runs-on: arc-runner-set-arm
strategy:
fail-fast: false
matrix:
include:
- gcc: 8
cxx: 14
- gcc: 9
cxx: 14
- gcc: 10
cxx: 17
- gcc: 11
cxx: 17
- gcc: 12
cxx: 20
- gcc: 13
cxx: 20
- gcc: 14
cxx: 23
run_test: true
steps:
- uses: szenius/set-timezone@v2.0
with:
timezoneLinux: "Asia/Shanghai"
timezoneMacos: "Asia/Shanghai"
timezoneWindows: "China Standard Time"
- uses: actions/checkout@v4
- name: Build
run: |
if [ "${{ matrix.gcc }}" != "8" ]; then
source /opt/rh/gcc-toolset-${{ matrix.gcc }}/enable
fi
cmake -B build -D CMAKE_BUILD_TYPE=MinSizeRel \
-D PHOTON_CXX_STANDARD=${{ matrix.cxx }} \
-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_LIBCURL=ON \
-D PHOTON_ENABLE_KCP=ON \
-D PHOTON_ENABLE_EXTFS=ON
cmake --build build -j $(nproc) -- VERBOSE=1
- name: Test
if: matrix.run_test
run: |
cd build
nohup redis-server &
ctest -E test-lockfree --timeout 3600 -V
pkill redis-server
debug-build-from-source:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'needs-manual-merge') && (github.event.action != 'unlabeled' || github.event.label.name == 'needs-manual-merge') }}
runs-on: ubuntu-26.04-arm
container:
image: almalinux:8
steps:
- uses: actions/checkout@v4
- name: Build
run: |
dnf install -y 'dnf-command(config-manager)'
dnf config-manager --set-enabled powertools
dnf -q -y install git gcc-c++ cmake gcc-toolset-9-gcc-c++ nasm
source /opt/rh/gcc-toolset-9/enable
cmake -B build -D CMAKE_BUILD_TYPE=Debug \
-D PHOTON_BUILD_DEPENDENCIES=ON \
-D PHOTON_BUILD_TESTING=ON \
-D PHOTON_ENABLE_ECOSYSTEM=ON \
-D PHOTON_ENABLE_SASL=OFF \
-D PHOTON_ENABLE_FUSE=OFF \
-D PHOTON_ENABLE_URING=ON \
-D PHOTON_ENABLE_LIBCURL=OFF \
-D PHOTON_ENABLE_EXTFS=OFF
cmake --build build -j $(nproc)