Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 1 addition & 38 deletions .github/workflows/mac_mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ env:
jobs:
build:
runs-on: macos-latest
timeout-minutes: 90
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
Expand Down Expand Up @@ -115,7 +115,6 @@ jobs:
--with-pthread \
--disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/MPICH \
MIMIC_LUSTRE=yes \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
make -j 8 tests
- name: Print config.log
Expand All @@ -142,42 +141,6 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: Build PnetCDF (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
make distclean
rm -rf pnetcdf_output
mkdir -p pnetcdf_output
./configure --disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/MPICH \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
make -j 8 tests
- name: Print config.log (default configuration)
if: ${{ always() }}
run: |
cat ${GITHUB_WORKSPACE}/config.log
- name: make check (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
make check
- name: Print test log files (default configuration)
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
fname=`find src test examples benchmarks -type f -name "*.log"`
for f in $fname ; do \
bname=`basename $f` ; \
if test "x$bname" != xconfig.log ; then \
echo "-------- dump $f ----------------------------" ; \
cat $f ; \
fi ; \
done
- name: make ptests (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: make distcheck
run: |
cd ${GITHUB_WORKSPACE}
Expand Down
170 changes: 170 additions & 0 deletions .github/workflows/mac_mpich_lustre.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
name: Mac OSX with MPICH (MIMIC_LUSTRE)

on:
push:
branches: [ master, test_github_actions ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.1'
- '**/*.jpg'
- '**/*.png'
- 'docs/*'
- 'test/test_installed/*'
pull_request:
branches: [ master, test_github_actions ]
paths-ignore:
- '**/*.md'
- '**/*.txt'
- '**/*.1'
- '**/*.jpg'
- '**/*.png'
- 'docs/*'
- 'test/test_installed/*'

env:
MPICH_VERSION: 4.3.0
AUTOCONF_VERSION: 2.71
AUTOMAKE_VERSION: 1.17
LIBTOOL_VERSION: 2.5.4
M4_VERSION: 1.4.19

jobs:
build:
runs-on: macos-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
run: |
# brew install gcc
# which gcc
# gcc --version
# which gfortran
- name: Clean up git untracked files
run: |
git clean -fx
- name: Build GNU autotools
run: |
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
cd ${GITHUB_WORKSPACE}
wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz
gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf -
cd m4-${M4_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
--silent
make -s -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
cd ${GITHUB_WORKSPACE}
wget -q https://ftp.gnu.org/gnu/autoconf/autoconf-${AUTOCONF_VERSION}.tar.gz
gzip -dc autoconf-${AUTOCONF_VERSION}.tar.gz | tar -xf -
cd autoconf-${AUTOCONF_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
--silent
make -s -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
cd ${GITHUB_WORKSPACE}
wget -q https://ftp.gnu.org/gnu/automake/automake-${AUTOMAKE_VERSION}.tar.gz
gzip -dc automake-${AUTOMAKE_VERSION}.tar.gz | tar -xf -
cd automake-${AUTOMAKE_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
--silent
make -s -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
cd ${GITHUB_WORKSPACE}
wget -q https://ftp.gnu.org/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
cd libtool-${LIBTOOL_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
--silent
make -s -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Build MPICH
run: |
cd ${GITHUB_WORKSPACE}
rm -rf MPICH ; mkdir MPICH ; cd MPICH
wget -q https://www.mpich.org/static/downloads/${MPICH_VERSION}/mpich-${MPICH_VERSION}.tar.gz
gzip -dc mpich-${MPICH_VERSION}.tar.gz | tar -xf -
cd mpich-${MPICH_VERSION}
./configure --prefix=${GITHUB_WORKSPACE}/MPICH \
--silent \
--enable-romio \
--with-file-system=ufs \
--with-device=ch3:sock \
--disable-fortran \
CC=gcc
make -s LIBTOOLFLAGS=--silent V=1 -j 8 install > qout 2>&1
make -s -j 8 distclean >> qout 2>&1
- name: Build PnetCDF with MIMIC_LUSTRE
run: |
cd ${GITHUB_WORKSPACE}
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
m4 --version
autoconf --version
automake --version
libtool --version
autoreconf -i
mkdir -p pnetcdf_output
./configure --enable-option-checking=fatal \
pnc_ac_debug=yes \
--enable-burst_buffering \
--enable-subfiling \
--enable-thread-safe \
--with-pthread \
--disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/MPICH \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output \
MIMIC_LUSTRE=yes
make -j 8 tests
- name: Print config.log
if: ${{ always() }}
run: |
cat ${GITHUB_WORKSPACE}/config.log
- name: make check
run: |
cd ${GITHUB_WORKSPACE}
make check
- name: Print test log files
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
fname=`find src test examples benchmarks -type f -name "*.log"`
for f in $fname ; do \
bname=`basename $f` ; \
if test "x$bname" != xconfig.log ; then \
echo "-------- dump $f ----------------------------" ; \
cat $f ; \
fi ; \
done
- name: make ptests
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: make distcheck
run: |
cd ${GITHUB_WORKSPACE}
make -j 8 distcheck DISTCHECK_CONFIGURE_FLAGS="--silent --with-mpi=${GITHUB_WORKSPACE}/MPICH"
- name: make install
run: |
cd ${GITHUB_WORKSPACE}
prefix_path=${GITHUB_WORKSPACE}/pnetcdf_install
echo "---- test make install prefix=${prefix_path}"
make install prefix=${prefix_path}
test/tst_install.sh ${prefix_path}
prefix_path="/pnetcdf_install"
destdir_path=${GITHUB_WORKSPACE}/inst
echo "---- test make install prefix=${prefix_path} DESTDIR=${destdir_path}"
make install prefix=${prefix_path} DESTDIR=${destdir_path}
test/tst_install.sh ${prefix_path} ${destdir_path}
- name: Cleanup
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
make -s distclean
rm -rf ${GITHUB_WORKSPACE}/pnetcdf_output
rm -rf ${GITHUB_WORKSPACE}/MPICH
rm -rf ${GITHUB_WORKSPACE}/pnetcdf_install
rm -rf ${GITHUB_WORKSPACE}/inst

39 changes: 1 addition & 38 deletions .github/workflows/mac_openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ env:
jobs:
build:
runs-on: macos-latest
timeout-minutes: 90
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- name: Set up dependencies
Expand Down Expand Up @@ -117,7 +117,6 @@ jobs:
--with-pthread \
--disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/OPENMPI \
MIMIC_LUSTRE=yes \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
make -j 8 tests
- name: Print config.log
Expand All @@ -144,42 +143,6 @@ jobs:
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: Build PnetCDF (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
make distclean
rm -rf pnetcdf_output
mkdir -p pnetcdf_output
./configure --disable-fortran \
--with-mpi=${GITHUB_WORKSPACE}/OPENMPI \
TESTOUTDIR=${GITHUB_WORKSPACE}/pnetcdf_output
make -j 8 tests
- name: Print config.log (default configuration)
if: ${{ always() }}
run: |
cat ${GITHUB_WORKSPACE}/config.log
- name: make check (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
make check
- name: Print test log files (default configuration)
if: ${{ always() }}
run: |
cd ${GITHUB_WORKSPACE}
fname=`find src test examples benchmarks -type f -name "*.log"`
for f in $fname ; do \
bname=`basename $f` ; \
if test "x$bname" != xconfig.log ; then \
echo "-------- dump $f ----------------------------" ; \
cat $f ; \
fi ; \
done
- name: make ptests (default configuration)
run: |
cd ${GITHUB_WORKSPACE}
make ptests
- name: make distcheck
run: |
cd ${GITHUB_WORKSPACE}
Expand Down
Loading
Loading