1
1
name : cmake Ubuntu
2
2
3
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ types : [opened, synchronize, reopened]
4
9
5
10
env :
6
11
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -15,22 +20,17 @@ jobs:
15
20
runs-on : ${{ matrix.os }}
16
21
strategy :
17
22
matrix :
18
- os : [ubuntu-20 .04]
23
+ os : [ubuntu-22 .04]
19
24
20
25
steps :
21
26
- uses : actions/checkout@v2
22
27
23
28
- name : Install Conan
24
29
id : conan
25
30
uses : turtlebrowser/get-conan@main
26
- with :
27
- version : 1.59.0
28
31
29
32
- name : Create default profile
30
- run : conan profile new default --detect
31
-
32
- - name : Update profile
33
- run : conan profile update settings.compiler.libcxx=libstdc++11 default
33
+ run : conan profile detect
34
34
35
35
- name : Create Build Environment
36
36
# Some projects don't allow in-source building, so create a separate build directory
@@ -44,16 +44,16 @@ jobs:
44
44
- name : Configure CMake
45
45
shell : bash
46
46
working-directory : ${{github.workspace}}/build
47
- run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
47
+ run : cmake ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
48
48
49
49
- name : Build
50
50
shell : bash
51
51
working-directory : ${{github.workspace}}/build
52
52
run : cmake --build . --config ${{env.BUILD_TYPE}}
53
53
54
54
- name : run test (Linux)
55
- working-directory : ${{github.workspace}}/build
56
- run : ./tests/behaviortree_cpp_test
55
+ working-directory : ${{github.workspace}}/build/tests
56
+ run : ctest
57
57
58
58
- name : Upload coverage reports to Codecov
59
59
uses : codecov/codecov-action@v3
0 commit comments