This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
Update README.md #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
- evilenzo_branch | |
pull_request: | |
branches: | |
- master | |
- dev | |
- evilenzo_branch | |
release: | |
types: [ published, created, edited ] | |
jobs: | |
Build: | |
strategy: | |
matrix: | |
compiler: [ g++, clang++ ] | |
BUILD_TYPE: [ Release, Debug ] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: sudo apt-get install -y libboost-all-dev | |
- name: CMake configure | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -DCMAKE_CXX_COMPILER=${{ matrix.compiler }} | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config ${{ matrix.BUILD_TYPE }} | |
- name: Test | |
working-directory: ${{github.workspace}}/build | |
run: ctest -C ${{ matrix.BUILD_TYPE }} -VV -j | |
- name: Install | |
working-directory: ${{github.workspace}}/build | |
run: sudo make install | |
- name: Test Installation | |
working-directory: ${{github.workspace}}/build/test/cmake | |
run: cmake ./ | |
- name: Test README Example | |
working-directory: ${{github.workspace}}/build/test/example | |
run: cmake ./ && cmake --build ./ && ./MyProject |