-
Notifications
You must be signed in to change notification settings - Fork 34
/
.cirrus.yml
131 lines (127 loc) · 3.92 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
osx_m1_task:
macos_instance:
image: ghcr.io/cirruslabs/macos-sonoma-xcode:latest
timeout_in: 5m
matrix:
env:
QTHREADS_SCHEDULER: nemesis
env:
QTHREADS_SCHEDULER: sherwood
env:
QTHREADS_SCHEDULER: distrib
install_deps_script: |
brew install autoconf automake libtool coreutils # coreutils is to get gtimeout for CI and is not universally required by qthreads.
build_script: |
./autogen.sh
./configure --enable-picky --with-scheduler=$QTHREADS_SCHEDULER --with-topology=no
make -j$CIRRUS_CPU
test_script: |
gtimeout --foreground 3m make check
freebsd_task:
freebsd_instance:
image_family: freebsd-13-2
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
test_script: |
gtimeout --foreground -k 10s 2m make check
arm_linux_task:
arm_container:
image: gcc:13-bookworm
timeout_in: 5m
matrix:
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: hwloc
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: no
env:
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: hwloc
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
test_script: |
timeout --foreground -k 10s 2m make check
arm_linux_clang_task:
arm_container:
image: gcc:13-bookworm
timeout_in: 5m
matrix:
env:
CC: clang-18
CXX: clang++-18
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: no
env:
CC: clang-18
CXX: clang++-18
QTHREADS_SCHEDULER: nemesis
QTHREADS_TOPOLOGY: hwloc
env:
CC: clang-18
CXX: clang++-18
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: no
env:
CC: clang-18
CXX: clang++-18
QTHREADS_SCHEDULER: sherwood
QTHREADS_TOPOLOGY: hwloc
env:
CC: clang-18
CXX: clang++-18
QTHREADS_SCHEDULER: distrib
QTHREADS_TOPOLOGY: no
env:
CC: clang-18
CXX: clang++-18
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-18 main'
apt-add-repository -y 'deb https://apt.llvm.org/bookworm/ llvm-toolchain-bookworm-18 main' # Something's buggy upstream but running this twice fixes it.
apt-get install -y clang-18
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
test_script: |
timeout --foreground -k 10s 2m make check