forked from HDFGroup/hdf4
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.1 KB
/
hdfeos2.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
name: hdfeos
on:
workflow_dispatch:
push:
pull_request:
branches: [ master ]
paths-ignore:
- '.github/CODEOWNERS'
- 'doc/**'
- 'release_docs/**'
- 'COPYING'
- '**.md'
jobs:
build:
name: Build hdfeos
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Install Autotools Dependencies (Linux)
run: |
sudo apt update
sudo apt install automake autoconf libtool libtool-bin
- name: Install HDF4
run: |
./autogen.sh
./configure --prefix=/usr/local --enable-shared --disable-fortran --disable-netcdf
make
sudo make install
- name: Install HDF-EOS2
run: |
wget -O hdfeos.tar.gz "https://git.earthdata.nasa.gov/projects/DAS/repos/hdfeos/raw/hdf-eos2-3.0-src.tar.gz?at=3128a738021501c821549955f6c78348e5f33850"
tar zxvf hdfeos.tar.gz
cd hdf-eos2-3.0
./configure LDFLAGS="-L/usr/local/lib -lmfhdf" --prefix=/usr/local/ --enable-shared --enable-install-include
make
make check
sudo make install