Skip to content

Commit 9cf0cf8

Browse files
committed
Github action: PnetCDF requires libtool 2.5.4
1 parent 6e0be8d commit 9cf0cf8

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/pnetcdf_master.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ on:
2424

2525
env:
2626
MPICH_VERSION: 4.3.0
27+
LIBTOOL_VERSION: 2.5.4
2728
PNETCDF_VERSION: repo
2829

2930
jobs:
@@ -36,11 +37,25 @@ jobs:
3637
run: |
3738
set -x
3839
sudo apt-get update
39-
sudo apt-get install automake autoconf libtool libtool-bin m4
40+
sudo apt-get install automake autoconf libtool=2.5.4 m4
4041
# mpich
4142
# sudo apt-get install mpich
4243
# zlib
4344
sudo apt-get install zlib1g-dev
45+
- name: Build Libtool
46+
run: |
47+
set -x
48+
cd ${GITHUB_WORKSPACE}
49+
echo "Install Libtool on ${GITHUB_WORKSPACE}/AUTOTOOLS"
50+
rm -rf AUTOTOOLS ; mkdir AUTOTOOLS ; cd AUTOTOOLS
51+
curl -LO https://ftpmirror.gnu.org/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
52+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
53+
cd libtool-${LIBTOOL_VERSION}
54+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
55+
--silent \
56+
CC=gcc
57+
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
58+
make -s distclean >> qout 2>&1
4459
- name: Build MPICH
4560
run: |
4661
set -x
@@ -73,6 +88,7 @@ jobs:
7388
run: |
7489
set -x
7590
cd ${GITHUB_WORKSPACE}
91+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
7692
echo "Install PnetCDF on ${GITHUB_WORKSPACE}/PnetCDF"
7793
rm -rf PnetCDF ; mkdir PnetCDF ; cd PnetCDF
7894
# curl -LO https://parallel-netcdf.github.io/Release/pnetcdf-${PNETCDF_VERSION}.tar.gz

0 commit comments

Comments
 (0)