-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (45 loc) · 1.4 KB
/
test_build.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
name: test_build
on: [push, workflow_dispatch]
jobs:
check_mac_installation:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: brew install openblas lapack open-mpi gcc
- name: get PDAF
run: |
wget -O PDAF_V2.1.tar.gz "${{ env.PDAF_LINK }}"
gzip -d PDAF_V2.1.tar.gz
tar -xvf PDAF_V2.1.tar
env:
PDAF_LINK: ${{ secrets.PDAF_V2_1 }}
- name: Install gfortran
run: |
brew reinstall gcc
echo 'export PATH="/usr/local/opt/gcc/bin:$PATH"' >> $GITHUB_ENV
source $GITHUB_ENV
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: install pyPDAF
run: |
$CONDA/bin/conda install python
mv setup_mac.cfg setup.cfg
pip install -v .
check_ubuntu_installation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sudo apt install -y liblapack-dev libblas-dev libopenmpi-dev
- name: get PDAF
run: |
wget -O PDAF_V2.1.tar.gz "${{ env.PDAF_LINK }}"
gzip -d PDAF_V2.1.tar.gz
tar -xvf PDAF_V2.1.tar
env:
PDAF_LINK: ${{ secrets.PDAF_V2_1 }}
- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: install pyPDAF
run: |
$CONDA/bin/conda install python
pip install -v .