Add scripted return status support for TestNode mocks #1282
Workflow file for this run
This file contains hidden or 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: cmake Windows | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # Pinned to windows-2022: windows-latest now ships Visual Studio 2026 | |
| # (MSVC 19.5), which makes Conan request the "Visual Studio 18 2026" | |
| # generator that the installed CMake cannot create. | |
| os: [windows-2022] | |
| build_type: [Release, Debug] | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Conan | |
| id: conan | |
| uses: turtlebrowser/get-conan@main | |
| - name: Create default profile | |
| run: conan profile detect | |
| - name: Install conan dependencies | |
| run: conan install conanfile.py -s build_type=${{ matrix.build_type }} --build=missing --settings:host compiler.cppstd=17 | |
| - name: Normalize build type | |
| shell: bash | |
| run: echo "BUILD_TYPE_LOWERCASE=$(echo "${{ matrix.build_type }}" | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV | |
| - name: Configure CMake | |
| shell: bash | |
| run: cmake --preset conan-default | |
| - name: Build | |
| shell: bash | |
| run: cmake --build --preset conan-${{ env.BUILD_TYPE_LOWERCASE }} | |
| - name: Run tests | |
| working-directory: ${{ github.workspace }}/build | |
| run: $env:PATH+=";${{ matrix.build_type }}"; tests/${{ matrix.build_type }}/behaviortree_cpp_test.exe |