feat: install target #10
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: Build and Test CI | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get update && sudo apt-get install libgtest-dev cmake | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: CMake config | |
run: | | |
cmake -S ./ -B build -DCMAKE_BUILD_TYPE=Release -DGRAPHS_BUILD_TESTS=True | |
- name: CMake build | |
run: | | |
cmake --build build | |
- name: CMake test | |
run: | | |
env CTEST_OUTPUT_ON_FAILURE=2 | |
cmake --build build --target test |