-
Notifications
You must be signed in to change notification settings - Fork 71
48 lines (42 loc) · 1.65 KB
/
python_build_mpi.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
name: Python build with MPI
permissions: read-all
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master , development ]
pull_request:
branches: [ master , development ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build-ubuntu-conda-gcc"
build-ubuntu-conda-gcc:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7
- name: Conda info, list, pybind install and activate
shell: bash -l {0}
run: |
conda info
conda list
conda install -y pybind11
conda activate /usr/share/miniconda/envs/test
- name: Install MPICH
run: |
sudo apt-get update
sudo apt-get install --yes --no-install-recommends libmpich-dev mpich
which mpic++
mpic++ --version
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: configure
shell: bash -l {0}
run: mkdir build && cd build && CXX=mpic++ cmake PYTHON_EXECUTABLE=/usr/share/miniconda/envs/test/bin/python -DIqsMPI=ON -DIqsPython=ON -DIqsUtest=OFF ..
- name: build
run: cmake --build build --target intelqs_py
- name: unit test
run: cd unit_test && /usr/share/miniconda/envs/test/bin/python import_iqs.py