Skip to content

Commit

Permalink
Update Github actions (#118)
Browse files Browse the repository at this point in the history
* remove repeated ctest option, updated to HDF5 1.14.1 for windows
* removed verbose ctest output
* add actions concurrency rule
  • Loading branch information
brtnfld committed May 16, 2023
1 parent b021532 commit e1072ec
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
pull_request:
branches: [ master ]

# Using concurrency to cancel any in-progress job or run
concurrency:
group: ${{ github.workflow }}-${{ github.sha || github.event.pull_request.number }}
cancel-in-progress: true

# A workflow run is made up of one or more jobs that
# can run sequentially or in parallel
jobs:
Expand Down Expand Up @@ -79,7 +84,7 @@ jobs:
mkdir build; cd build
cmake -D FORTRAN_INTERFACE=ON -D CMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON ..
sudo cmake --build . --target install
ctest --verbose -C Release .
ctest -C Release .
shell: bash


Expand All @@ -102,10 +107,10 @@ jobs:
- name: download HDF5 for Windows
run: |
wget --quiet \
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.0/bin/windows/hdf5-1.14.0-Std-win10_64-vs16-clang.zip
unzip hdf5-1.14.0-Std-win10_64-vs16-clang.zip
https://support.hdfgroup.org//ftp/HDF5/releases/hdf5-1.14/hdf5-1.14.1/bin/windows/hdf5-1.14.1-2-Std-win10_64-vs16-clang.zip
unzip hdf5-1.14.1-2-Std-win10_64-vs16-clang.zip
- name: Install HDF5 for Windows
run: msiexec /i "hdf\HDF5-1.14.0-win64.msi" /qn
run: msiexec /i "hdf\HDF5-1.14.1-win64.msi" /qn
shell: cmd
- name: Download and install ZFP
run: |
Expand All @@ -128,10 +133,10 @@ jobs:
echo "C:/Program Files/H5Z_ZFP/plugin" >> $GITHUB_PATH
echo "C:/Program Files/ZFP/bin" >> $GITHUB_PATH
echo "C:/Program Files/ZFP/lib" >> $GITHUB_PATH
echo "C:/Program Files/HDF_Group/HDF5/1.14.0/bin" >> $GITHUB_PATH
echo "C:/Program Files/HDF_Group/HDF5/1.14.1/bin" >> $GITHUB_PATH
echo "HDF5_PLUGIN_PATH=C:/Program Files/H5Z_ZFP/plugin" >> $GITHUB_ENV
echo "HDF5_DIR=C:/Program Files/HDF_Group/HDF5/1.14.0" >> $GITHUB_ENV
echo "HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.14.0" >> $GITHUB_ENV
echo "HDF5_DIR=C:/Program Files/HDF_Group/HDF5/1.14.1" >> $GITHUB_ENV
echo "HDF5_ROOT=C:/Program Files/HDF_Group/HDF5/1.14.1" >> $GITHUB_ENV
echo "ZFP_DIR=C:/Program Files/ZFP" >> $GITHUB_ENV
- name: Build H5Z-ZFP (CMake) and test
run: |
Expand All @@ -144,4 +149,4 @@ jobs:
-DFORTRAN_INTERFACE=OFF \
-TClangCL
cmake --build . --config Release --target install
ctest --repeat until-pass:5 -C Release .
ctest -C Release .

0 comments on commit e1072ec

Please sign in to comment.