forked from ralna/spral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
40 lines (40 loc) · 2 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
task:
matrix:
- name: Meson / freebsd/gcc-12
freebsd_instance:
image: freebsd-13-3-release-amd64
- name: Meson / macos-silicon/gcc-14
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
dependencies_script: |
echo $(uname)
if [ "$(uname)" = "FreeBSD" ]; then
pkg install -y py39-pip meson bash gcc12 metis hwloc openblas
else
brew install python meson gcc@14 metis hwloc openblas
fi
configure_script: |
if [ "$(uname -s)" = "FreeBSD" ]; then
FC=gfortran12 CC=gcc12 CXX=g++12 meson setup builddir --buildtype=debug -Dexamples=true -Dtests=true \
-Dmetis64=true -Dlibblas=openblas -Dliblapack=openblas
else
FC=gfortran-14 CC=gcc-14 CXX=g++-14 /opt/homebrew/opt/meson/bin/meson setup builddir --buildtype=debug \
-Dexamples=true -Dtests=true \
-Dlibblas_path=/opt/homebrew/opt/openblas/lib \
-Dliblapack_path=/opt/homebrew/opt/openblas/lib \
-Dlibblas_include=/opt/homebrew/opt/openblas/include \
-Dlibmetis_path=/opt/homebrew/opt/metis/lib \
-Dmetis64=false \
-Dlibhwloc_path=/opt/homebrew/opt/hwloc/lib \
-Dlibhwloc_include=/opt/homebrew/opt/hwloc/include \
-Dlibblas=openblas -Dliblapack=openblas
fi
build_script: |
meson compile -C builddir
install_script: |
meson install -C builddir
test_script: |
meson test -C builddir
on_failure:
log_artifacts:
path: builddir/meson-logs/*log.txt