-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 970 Bytes
/
Copy pathbuild_cpp.yml
File metadata and controls
38 lines (32 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: C++ unit tests
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
jobs:
test_all:
name: Build and test
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Install BaseGraph
run: |
git clone https://github.com/BaseGraph/BaseGraph.git
cd BaseGraph
cmake -B build
cmake --build build
cmake --install build --prefix "${{github.workspace}}/local_install"
pip3 install .
cd ..
- name: Configure and build CMake
run: |
cmake -B "${{github.workspace}}/build" -DBUILD_TESTS=ON -DCMAKE_PREFIX_PATH="${{github.workspace}}/local_install"
cmake --build "${{github.workspace}}/build"
- name: Run unit tests
working-directory: ${{github.workspace}}/build
run: ctest --verbose