Add an in-tree Conan recipe, tested by CI #4
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: Conan | |
| on: | |
| # On new commits to main: | |
| push: | |
| branches: | |
| - main | |
| # On pull requests: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test_conan: | |
| name: "Conan, ${{ matrix.os }}, shared=${{ matrix.shared }}" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| shared: ["False", "True"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: "Checkout repository" | |
| uses: actions/checkout@v4 | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: "Install Conan" | |
| run: pip install conan ninja | |
| - name: "Detect Conan profile" | |
| run: conan profile detect | |
| - name: "conan create ." | |
| run: > | |
| conan create . | |
| --build=missing | |
| -o "&:shared=${{ matrix.shared }}" |