-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.cirrus.yml
56 lines (56 loc) · 1.38 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
task:
matrix:
- name: FreeBSD -- gcc | g++
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
env:
cc: gcc13
cxx: g++13
- name: FreeBSD -- clang | clang++
freebsd_instance:
image: freebsd-14-0-release-amd64-ufs
env:
cc: clang
cxx: clang++
- name: MacOS M1 -- gcc | g++
macos_instance:
image: ghcr.io/cirruslabs/macos-runner:sonoma
env:
cc: gcc-14
cxx: g++-14
- name: MacOS M1 -- clang | clang++
macos_instance:
image: ghcr.io/cirruslabs/macos-runner:sonoma
env:
cc: clang
cxx: clang++
dependencies_script: |
echo $(uname)
if [ "$(uname)" = "FreeBSD" ]; then
pkg install -y cmake bash gcc13
else
brew install cmake gcc@12
fi
configure_script: |
mkdir instdir
mkdir build
cd build
cmake \
-DCMAKE_C_COMPILER=$cc \
-DCMAKE_CXX_COMPILER=$cxx \
-DTEST_OPENMP=OFF \
-DBUILD_INTERFACE_C=ON \
-DCMAKE_INSTALL_PREFIX=../instdir \
..
build_script: |
cmake --build build --parallel 8 --config Release
install_script: |
cmake --install build --config Release
test_script: |
export PATH=`pwd`/build/bin:$PATH
echo $PATH
if [ "$(uname)" = "FreeBSD" ]; then
ln -s /usr/local/bin/bash /bin/bash
fi
cd build
ctest -C Release --parallel 8