Skip to content

Commit

Permalink
feat(ci) Adds Linux and MacOS builds to build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gmbeard committed Mar 5, 2024
1 parent 17e3c60 commit b9792b7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

3 changes: 2 additions & 1 deletion include/semverutil/semver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "./utils.hpp"
#include "semverutil/config.hpp"
#include <array>
#include <cinttypes>
#include <cstring>
#include <optional>
#include <string>
Expand All @@ -17,7 +18,7 @@ namespace semver
{
struct SemVer
{
std::array<uint32_t, 4> version;
std::array<std::uint32_t, 4> version;
std::string prerelease;
std::string metadata;

Expand Down

0 comments on commit b9792b7

Please sign in to comment.