diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-07-22 20:17:29 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2022-07-22 20:17:29 -0400 |
commit | a70733d9a64320eac8038d733df67467cd97976c (patch) | |
tree | 767c0edc76bafc42e27a23ddad7ff9054d7e5728 /.github/workflows | |
parent | 4a196857e13bd65ef982fe90dae1a1865985ee94 (diff) | |
download | version_compare-a70733d9a64320eac8038d733df67467cd97976c.tar.gz |
Implement test harnass
* Fix various memory leaks
* Fix off by one error in rsplit
* main program is a wrapper for the vcmp library entry() function
* Implement basic CI
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/cmake.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml new file mode 100644 index 0000000..8e3eb97 --- /dev/null +++ b/.github/workflows/cmake.yml @@ -0,0 +1,45 @@ +name: CMake + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + tests: + name: ${{ matrix.name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + include: + - name: Debug (Linux) + os: ubuntu-latest + build_type: Debug + + - name: Debug (MacOS) + os: macos-latest + build_type: Debug + + - name: Release (Linux) + os: ubuntu-latest + build_type: Release + + - name: Release (MacOS) + os: macos-latest + build_type: Release + + steps: + - uses: actions/checkout@v2 + + - name: Configure CMake + run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + + - name: Build + run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.build_type }} + + - name: Test + working-directory: ${{ github.workspace }}/build + run: ctest -V -C ${{ matrix.build_type }} + |