diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2f006ef..3245f4a 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -11,11 +11,16 @@ env: BUILD_TYPE: Debug jobs: - build: + build-and-test: + strategy: + matrix: + os: + - ubuntu-latest + - macos-13 # The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. # You can convert this to a matrix build if you need cross-platform coverage. # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -34,4 +39,3 @@ jobs: # Execute tests defined by the CMake configuration. # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure - diff --git a/include/semverutil/semver.hpp b/include/semverutil/semver.hpp index e4d5379..9472782 100644 --- a/include/semverutil/semver.hpp +++ b/include/semverutil/semver.hpp @@ -5,6 +5,7 @@ #include "./utils.hpp" #include "semverutil/config.hpp" #include +#include #include #include #include @@ -17,7 +18,7 @@ namespace semver { struct SemVer { - std::array version; + std::array version; std::string prerelease; std::string metadata;