11name : cmake Ubuntu
22
3- on : [push, pull_request]
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ types : [opened, synchronize, reopened]
49
510env :
611 # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
@@ -15,22 +20,17 @@ jobs:
1520 runs-on : ${{ matrix.os }}
1621 strategy :
1722 matrix :
18- os : [ubuntu-20 .04]
23+ os : [ubuntu-22 .04]
1924
2025 steps :
2126 - uses : actions/checkout@v2
2227
2328 - name : Install Conan
2429 id : conan
2530 uses : turtlebrowser/get-conan@main
26- with :
27- version : 1.59.0
2831
2932 - 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
3434
3535 - name : Create Build Environment
3636 # Some projects don't allow in-source building, so create a separate build directory
@@ -44,16 +44,16 @@ jobs:
4444 - name : Configure CMake
4545 shell : bash
4646 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
4848
4949 - name : Build
5050 shell : bash
5151 working-directory : ${{github.workspace}}/build
5252 run : cmake --build . --config ${{env.BUILD_TYPE}}
5353
5454 - 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
5757
5858 - name : Upload coverage reports to Codecov
5959 uses : codecov/codecov-action@v3
0 commit comments