fix16 #26
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: Test Consumer Example | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install CMake and Conan | |
| run: | | |
| pip install cmake 'conan>=2.0.0,<3.0.0' | |
| cmake --version | |
| conan --version | |
| - name: Detect Conan default profile | |
| run: conan profile detect --force | |
| - name: Create Conan package from current repository | |
| run: | | |
| conan create . --build=missing | |
| - name: Install Conan dependencies (using local cache) | |
| working-directory: examples/consumer_project | |
| run: | | |
| mkdir -p build | |
| cd build | |
| conan install .. --build=missing | |
| - name: Configure CMake | |
| working-directory: examples/consumer_project/build | |
| run: | | |
| cmake .. \ | |
| -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake \ | |
| -DCMAKE_BUILD_TYPE=Release | |
| - name: Build project | |
| working-directory: examples/consumer_project/build | |
| run: cmake --build . --config Release | |
| - name: Run example | |
| working-directory: examples/consumer_project/build | |
| run: ./example_app | |
| - name: Display success | |
| run: | | |
| echo "✅ Consumer example successfully built and ran!" | |
| echo "Package was successfully consumed from git repository" |