-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.cirrus.yml
61 lines (61 loc) · 2.02 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
task:
matrix:
- name: FreeBSD
freebsd_instance:
image: freebsd-13-2-release-amd64
env:
- JULIA_VERSION: 1
- name: MacOS M1
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-base:latest
env:
- JULIA_VERSION: 1
dependencies_script: |
echo $(uname)
if [ "$(uname)" = "FreeBSD" ]; then
pkg install -y py39-pip meson cmake bash gcc12 openblas
pip install numpy
echo "JULIA_GALAHAD_LIBRARY_PATH=/usr/local/lib" >> $CIRRUS_ENV
else
brew install python meson gcc openblas
pip3 install numpy
echo "JULIA_GALAHAD_LIBRARY_PATH=/opt/homebrew/lib" >> $CIRRUS_ENV
fi
echo "JULIA_PROJECT_SUBDIR=GALAHAD.jl" >> $CIRRUS_ENV
echo "GALAHAD=$CIRRUS_WORKING_DIR" >> $CIRRUS_ENV
echo "OMP_CANCELLATION=TRUE" >> $CIRRUS_ENV
echo "OMP_PROC_BIND=TRUE" >> $CIRRUS_ENV
configure_script: |
if [ "$(uname -s)" = "FreeBSD" ]; then
FC=gfortran12 CC=gcc12 CXX=g++12 meson setup builddir --buildtype=debug -Dexamples=true -Dtests=true -Dpythoniface=true
else
FC=gfortran-12 CC=gcc-12 CXX=g++-12 meson setup builddir --buildtype=debug -Dexamples=true -Dtests=true -Dpythoniface=true
fi
build_script: |
meson compile -C builddir
install_script: |
meson install -C builddir
test_script: |
meson test -C builddir
julia_install_script: |
# URL="https://raw.githubusercontent.com/ararslan/CirrusCI.jl/master/bin/install.sh"
URL="https://raw.githubusercontent.com/amontoison/CirrusCI.jl/package_subfolder/bin/install.sh"
set -x
if [ "$(uname -s)" = "Linux" ] && command -v apt; then
apt update
apt install -y curl
fi
if command -v curl; then
sh -c "$(curl ${URL})"
elif command -v wget; then
sh -c "$(wget ${URL} -q -O-)"
elif command -v fetch; then
sh -c "$(fetch ${URL} -o -)"
fi
julia_build_script: |
cirrusjl build
julia_test_script: |
cirrusjl test
on_failure:
log_artifacts:
path: builddir/meson-logs/*log.txt