From b9792b71c24483bd233afbb108aa538d449b7f10 Mon Sep 17 00:00:00 2001 From: Greg Beard Date: Tue, 5 Mar 2024 18:47:40 +0000 Subject: [PATCH] feat(ci) Adds Linux and MacOS builds to build workflow --- .github/workflows/cmake.yml | 10 +++++++--- include/semverutil/semver.hpp | 3 ++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 2f006ef..cf0dcf7 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -11,11 +11,16 @@ env: BUILD_TYPE: Debug jobs: - build: + build-linux: + 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;