-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include
H5Version.hpp
in the sources.
- Loading branch information
Showing
4 changed files
with
70 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: HighFive Check Version File | ||
|
||
on: | ||
push: | ||
branches: | ||
- ci_test | ||
- release/** | ||
pull_request: | ||
branches: | ||
- master | ||
- release/** | ||
|
||
jobs: | ||
CheckVersion: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true | ||
|
||
- name: "Install libraries" | ||
run: | | ||
sudo apt-get -qq update | ||
sudo apt-get -qq install libhdf5-dev ninja-build | ||
- name: Build | ||
run: | | ||
# Will trigger `configure_file` for H5Version.hpp. | ||
cmake -DHIGHFIVE_USE_BOOST=Off -B build . | ||
- name: Test | ||
run: | | ||
# Check that the file hasn't changed, i.e. was updated | ||
# after changing the version number. | ||
! git status | grep include/highfive/H5Version.hpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c), 2020 | ||
* | ||
* Distributed under the Boost Software License, Version 1.0. | ||
* (See accompanying file LICENSE_1_0.txt or copy at | ||
* http://www.boost.org/LICENSE_1_0.txt) | ||
* | ||
*/ | ||
#pragma once | ||
|
||
#define HIGHFIVE_VERSION_MAJOR 2 | ||
#define HIGHFIVE_VERSION_MINOR 7 | ||
#define HIGHFIVE_VERSION_PATCH 2 | ||
|
||
/** \brief Concatenated representation of the HighFive version. | ||
* | ||
* \warning The macro `HIGHFIVE_VERSION` by itself isn't valid C/C++. | ||
* | ||
* However, it can be stringified with two layers of macros, e.g., | ||
* \code{.cpp} | ||
* #define STRINGIFY_VALUE(s) STRINGIFY_NAME(s) | ||
* #define STRINGIFY_NAME(s) #s | ||
* | ||
* std::cout << STRINGIFY_VALUE(HIGHFIVE_VERSION) << "\n"; | ||
* \endcode | ||
*/ | ||
#define HIGHFIVE_VERSION 2.7.2 | ||
|
||
/** \brief String representation of the HighFive version. | ||
* | ||
* \warning This macro only exists from 2.7.1 onwards. | ||
*/ | ||
#define HIGHFIVE_VERSION_STRING "2.7.2" |