-
Notifications
You must be signed in to change notification settings - Fork 36
/
.cirrus.yml
172 lines (168 loc) · 5.36 KB
/
.cirrus.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
osx_m1_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
timeout_in: 5m
matrix:
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: binders
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: binders
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: binders
install_deps_script: |
brew install autoconf automake libtool coreutils # coreutils is to get gtimeout for CI and is not universally required by qthreads.
if [ "$QTHREADS_TOPOLOGY" != "no" ]; then brew install hwloc; fi
build_script: |
export CFLAGS="-g -I$(brew --prefix)/include $CFLAGS"
export CXXFLAGS="-g -I$(brew --prefix)/include $CXXFLAGS"
export LDFLAGS="-g -L$(brew --prefix)/lib $LDFLAGS"
./autogen.sh
./configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=$QTHREADS_TOPOLOGY
make -j$CIRRUS_CPU
make tests -j$CIRRUS_CPU
test_script: |
# commented example for how to get a backtrace from CI usign lldb on OSX:
#echo "settings set target.process.stop-on-exec false" > ~/.lldbinit
#QT_NUM_SHEPHERDS=2 QT_NUM_WORKERS_PER_SHEPHERD=1 lldb bash --batch --one-line 'process launch' --one-line-on-crash 'bt' --one-line-on-crash 'quit' -- test/basics/hello_world
gtimeout --foreground 3m make check
freebsd_task:
freebsd_instance:
image_family: freebsd-14-0
timeout_in: 5m
matrix:
env:
QTHREADS_SCHEDULER: nemesis
env:
QTHREADS_SCHEDULER: sherwood
env:
QTHREADS_SCHEDULER: distrib
install_deps_script: |
pkg install -y bash
pkg install -y llvm autoconf automake libtool
pkg install -y coreutils # to get gtimeout for CI. The built-in timeout sometimes fails to kill the process.
build_script: |
bash autogen.sh
bash configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=no
make -j$CIRRUS_CPU
make tests -j$CIRRUS_CPU
test_script: |
gtimeout --foreground -k 10s 2m make check
arm_linux_task:
arm_container:
image: gcc:14-bookworm
timeout_in: 5m
matrix:
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: binders
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: binders
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: binders
install_deps_script: |
apt-get update -y
apt-get install -y autoconf automake libtool
apt-get install -y hwloc libhwloc-dev
build_script: |
./autogen.sh
./configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=$QTHREADS_TOPOLOGY
make -j$CIRRUS_CPU
make tests -j$CIRRUS_CPU
test_script: |
timeout --foreground -k 10s 2m make check
arm_linux_clang_task:
arm_container:
image: gcc:14-bookworm
timeout_in: 5m
matrix:
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: no
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: hwloc
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: no
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: hwloc
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: no
env:
CC: clang-19
CXX: clang++-19
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: hwloc
install_deps_script: |
apt-get update -y
apt-get install -y software-properties-common
wget https://apt.llvm.org/llvm-snapshot.gpg.key
gpg --no-default-keyring --keyring ./tmp.gpg --import llvm-snapshot.gpg.key
gpg --no-default-keyring --keyring ./tmp.gpg --export --output llvm-snapshot.gpg
rm tmp.gpg
cp llvm-snapshot.gpg /etc/apt/trusted.gpg.d/llvm-snapshot.gpg # This is for CI so no need to do something more complicated to restrict key use to a specific repo.
apt-add-repository -y 'deb https://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-19 main'
apt-add-repository -y 'deb https://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-19 main' # Something's buggy upstream but running this twice fixes it.
apt-get install -y clang-19
apt-get install -y autoconf automake libtool
apt-get install -y hwloc libhwloc-dev
build_script: |
./autogen.sh
./configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=$QTHREADS_TOPOLOGY
make -j$CIRRUS_CPU
make tests -j$CIRRUS_CPU
test_script: |
timeout --foreground -k 10s 2m make check