-
Notifications
You must be signed in to change notification settings - Fork 71
122 lines (118 loc) · 5.03 KB
/
Copy pathpip.yml
File metadata and controls
122 lines (118 loc) · 5.03 KB
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
name: pip_setup
on:
pull_request:
branches: [ develop ]
jobs:
build_pip_basic:
name: Ubuntu pip setup.py
runs-on: ubuntu-22.04
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
sudo apt-get install -y binutils \
cmake \
gcc \
g++ \
gfortran \
python3 \
python3-dev \
python-is-python3 \
python3-pip \
python3-venv \
python3-numpy \
python3-mpi4py \
python3-wheel \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
file \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
liblapacke-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
libhdf5-dev \
vim
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build & Test
run: |
env ENABLE_MPI=ON HDF5_DIR=/usr/ pip install -v .
rm -rf build
python3 -c "import conduit;print(conduit.about());"
python3 -c "import conduit.relay;print(conduit.relay.io.about())"
python3 -c "import conduit.relay.mpi;print(conduit.relay.mpi.about())"
build_pip_using_host_config:
name: Ubuntu pip setup.py using host config
runs-on: ubuntu-22.04
steps:
- name: Install Deps
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
sudo apt-get install -y binutils \
cmake \
gcc \
g++ \
gfortran \
python3 \
python3-dev \
python-is-python3 \
python3-pip \
python3-venv \
python3-numpy \
python3-mpi4py \
python3-wheel \
perl \
git \
git-lfs \
curl \
wget \
tar \
unzip \
file \
build-essential \
libncurses-dev \
libssl-dev \
libblas-dev \
liblapack-dev \
liblapacke-dev \
zlib1g-dev \
libgdbm-dev \
libreadline-dev \
libsqlite3-dev \
libbz2-dev \
openmpi-bin \
openmpi-common \
libopenmpi-dev \
libhdf5-dev \
vim
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build & Test
run: |
echo 'set(ENABLE_MPI "ON" CACHE BOOL "")' > conduit-config.cmake
echo 'set(HDF5_DIR "/usr/" CACHE PATH "")' >> conduit-config.cmake
cat conduit-config.cmake
env HOST_CONFIG=`pwd`/conduit-config.cmake pip install -v .
rm -rf build
python3 -c "import conduit;print(conduit.about());"
python3 -c "import conduit.relay;print(conduit.relay.io.about())"
python3 -c "import conduit.relay.mpi;print(conduit.relay.mpi.about())"