Skip to content

Commit

Permalink
netcdf ubuntu ci 4
Browse files Browse the repository at this point in the history
  • Loading branch information
mjreno authored and mjreno committed Jul 21, 2023
1 parent e7dfdfe commit 4203960
Showing 1 changed file with 33 additions and 18 deletions.
51 changes: 33 additions & 18 deletions .github/workflows/a3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ jobs:
- name: build-openmpi
if: steps.cache-openmpi.outputs.cache-hit != 'true'
run: |
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.4.tar.gz &> /dev/null
tar -xzf openmpi-4.0.4.tar.gz
pushd openmpi-4.0.4
#wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.4.tar.gz &> /dev/null
#tar -xzf openmpi-4.0.4.tar.gz
#pushd openmpi-4.0.4
https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.5.tar.gz &> /dev/null
tar -xzf openmpi-4.1.5.tar.gz
pushd openmpi-4.1.5
./configure --prefix=/home/runner/openmpi
make
sudo make install
Expand All @@ -50,9 +53,12 @@ jobs:
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz &> /dev/null
tar -xzf hdf5-1.10.6.tar.gz
pushd hdf5-1.10.6
#wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6.tar.gz &> /dev/null
#tar -xzf hdf5-1.10.6.tar.gz
#pushd hdf5-1.10.6
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.1/src/hdf5-1.14.1-2.tar.gz &> /dev/null
tar -xzf hdf5-1.14.1-2.tar.gz
pushd hdf5-1.14.1-2
./configure --prefix=/home/runner/hdf5 --enable-parallel --disable-tools --disable-fortran --disable-cxx --enable-parallel-tests
make
sudo make install
Expand All @@ -70,11 +76,14 @@ jobs:
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.4.tar.gz &> /dev/null
file netcdf-c-4.7.4.tar.gz
#tar -xzf netcdf-c-4.7.4.tar.gz
tar -xf netcdf-c-4.7.4.tar.gz
pushd netcdf-c-4.7.4
#wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-c-4.7.4.tar.gz &> /dev/null
#file netcdf-c-4.7.4.tar.gz
##tar -xzf netcdf-c-4.7.4.tar.gz
#tar -xf netcdf-c-4.7.4.tar.gz
#pushd netcdf-c-4.7.4
wget https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netcdf-c-4.9.2.tar.gz &> /dev/null
tar -xzf netcdf-c-4.9.2.tar.gz
pushd netcdf-c-4.9.2
./configure --prefix=/home/runner/netcdf-c --disable-dap --disable-utilities
make -j
sudo make install
Expand All @@ -92,10 +101,13 @@ jobs:
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://github.com/Unidata/netcdf-fortran/archive/v4.5.3.tar.gz &> /dev/null
file v4.5.3.tar.gz
tar -xzf v4.5.3.tar.gz
pushd netcdf-fortran-4.5.3
#wget https://github.com/Unidata/netcdf-fortran/archive/v4.5.3.tar.gz &> /dev/null
#file v4.5.3.tar.gz
#tar -xzf v4.5.3.tar.gz
#pushd netcdf-fortran-4.5.3
wget https://downloads.unidata.ucar.edu/netcdf-fortran/4.6.1/netcdf-fortran-4.6.1.tar.gz &> /dev/null
tar -xzf netcdf-fortran-4.6.1.tar.gz
pushd netcdf-fortran-4.6.1
./configure --prefix=/home/runner/netcdf-fortran
make -j
sudo make install
Expand All @@ -113,9 +125,12 @@ jobs:
set -x
export PATH="/home/runner/openmpi/bin:$PATH"
export CC=/home/runner/openmpi/bin/mpicc
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.1.tar.gz &> /dev/null
tar -xzf pnetcdf-1.12.1.tar.gz
pushd pnetcdf-1.12.1
#wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.1.tar.gz &> /dev/null
#tar -xzf pnetcdf-1.12.1.tar.gz
#pushd pnetcdf-1.12.1
wget https://parallel-netcdf.github.io/Release/pnetcdf-1.12.3.tar.gz &> /dev/null
tar -xzf pnetcdf-1.12.3.tar.gz
pushd pnetcdf-1.12.3
./configure --prefix=/home/runner/pnetcdf --enable-shared --disable-cxx
make
sudo make install
Expand Down

0 comments on commit 4203960

Please sign in to comment.