-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.cirrus.yaml
56 lines (54 loc) · 1.92 KB
/
.cirrus.yaml
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
macos_arm64_task:
name: Build dependencies / Build macosx_arm64 dependencies
macos_instance:
image: ghcr.io/cirruslabs/macos-monterey-xcode:latest
env:
MACOSX_DEPLOYMENT_TARGET: "11"
CC: "/usr/bin/clang"
CXX: "/usr/bin/clang++"
CXXFLAGS: "-std=c++11"
PREFIX: ${CIRRUS_WORKING_DIR}/macosx_arm64
HIGHFIVE_VERSION: "2.7.1"
BOOST_VERSION: "1.83.0"
EIGEN_VERSION: "3.4.0"
HDF5_VERSION: "1.14.2"
LIBINT_VERSION: "2.7.2"
GMP_VERSION: "6.3.0"
create_output_dir_script:
- mkdir -p $PREFIX/lib
- mkdir -p $PREFIX/bin
- mkdir -p $PREFIX/include
- sudo mkdir -p /usr/local/lib
- sudo mkdir -p /usr/local/include
- sudo chmod -R a+rwx /usr/local
- cp -r licenses $PREFIX/licenses
install_brew_dependencies_script:
- brew update
- brew install automake
- brew install python
install_python_dependencies_script:
- pip3 install -e .
- which python3 && python3 --version
- pip3 list
install_highfive_script:
- python3 tools/install_highfive.py $HIGHFIVE_VERSION --prefix=$PREFIX
install_boost_script:
- python3 tools/install_boost.py $BOOST_VERSION --prefix=$PREFIX
isntall_eigen_script:
- python3 tools/install_eigen.py $EIGEN_VERSION --prefix=$PREFIX
install_hdf5_script:
- python3 tools/install_hdf5.py $HDF5_VERSION --prefix=$PREFIX --libdir=/usr/local/lib
- cp /usr/local/lib/libhdf5* $PREFIX/lib/
install_gmp_script:
- python3 tools/install_gmp.py $GMP_VERSION --prefix=$PREFIX --libdir=/usr/local/lib
- cp /usr/local/lib/libgmp* $PREFIX/lib/
install_libint_script:
- cp -r $PREFIX/include/* /usr/local/include/
- python3 tools/install_libint.py $LIBINT_VERSION --prefix=$PREFIX --libdir=/usr/local/lib
- cp /usr/local/lib/libint2* $PREFIX/lib/
create_archive_script:
- cd $PREFIX && cd ..
- tar -czvf $PREFIX.tar.gz macosx_arm64
artifacts:
path: "${PREFIX}.tar.gz"
type: application/gzip