Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/buildAndTest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: Build and test

defaults:
run:
shell: bash

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]

env:
BUILD_TYPE: Debug
Comment thread
nmellado marked this conversation as resolved.

jobs:
build:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { name: "Windows MSVC", os: windows-latest, cc: "cl.exe", cxx: "cl.exe", icon: "Windows"}
- { name: "Ubuntu gcc", os: ubuntu-latest, cc: "gcc", cxx: "g++", icon: "Linux" }
- { name: "MacOS clang", os: macos-latest, cc: "clang", cxx: "clang++", icon: "Apple" }

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B "${{github.workspace}}/build" -DCMAKE_C_COMPILER=${{ matrix.config.cc }} -DCMAKE_CXX_COMPILER=${{ matrix.config.cxx }}
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INSTALL_PREFIX=install -DHUB_ENABLE_TESTS=ON -DHUB_ENABLE_EXAMPLES=ON

- name: Build
run: cmake --build "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}}

- name: Install
run: cmake --install "${{github.workspace}}/build" --config ${{env.BUILD_TYPE}}

2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Current head v.2.1.0 rc
* Remove dead code (#15)
- Licensing
* Added license and readme to externals (#18)
- CI
* Add github ci with build and install (#22)

---
v.2.0.0
Expand Down