-
Notifications
You must be signed in to change notification settings - Fork 122
51 lines (45 loc) · 1.44 KB
/
make.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
#
# Compile the Smilei code
#
# _________________________________________
name: make
on:
push:
branches: [ master, develop, CI ]
pull_request:
branches: [ master, develop, CI ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: update
run: sudo apt-get --allow-releaseinfo-change update -y
- name: python
run: |
sudo apt-get install -y git python3-h5py python3-ipython python3-pint python3-sphinx python3-matplotlib python3-dev python3-numpy build-essential
- name: mpi packet
run: |
sudo apt-get install -y openmpi-bin openmpi-doc libopenmpi-dev
mpic++ -show
- name: hdf5 packet
run: |
sudo apt-get install -y libhdf5-openmpi-dev
export PYTHONEXE=python3
h5pcc -show
export HDF5_ROOT_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/
#- name: compile Smilei
# run: |
# cd validation
# export HDF5_ROOT_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/
# python3 validation.py -c -v
- name: compile Smilei
run: |
export HDF5_ROOT_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/
make
- name: run quick tests
run: |
export PYTHONEXE=python3
export HDF5_ROOT_DIR=/usr/lib/x86_64-linux-gnu/hdf5/openmpi/
cd validation
python3 validation.py -b "tst_quick_1d.py" -m 1 -o 1 -v