diff options
| author | Devon Adair | 2024-02-17 10:42:44 -0500 |
|---|---|---|
| committer | GitHub | 2024-02-17 16:42:44 +0100 |
| commit | 62d4aecb8c9c30b04188d6846e3ad072eee790ba (patch) | |
| tree | 3523f07f06b73add04fde9fe90b50783197b83c1 /.github | |
| parent | b817497528877b14d6102869a6df378d029b343b (diff) | |
| download | catch3-62d4aecb8c9c30b04188d6846e3ad072eee790ba.tar.gz | |
Conan v2 (#2805)
* Removed Conan1 build.py file using conan package tools that are no longer supported
* Working conan 1 and 2 build with the test package.
updated the test_package to be updated to conan 2 and fixed missing cmake. Still need to check that the license file is packaged up and that the packages look identical before the changes
* Removing debug prints and the license check that isn't working yet
* Working license file copied over as it was before
* Migrated the properties of cpp_info to conan 2. Keeping conan 1 support by checking the version of conan
https://docs.conan.io/1/migrating_to_2.0/properties.html
* Revert "Removed Conan1 build.py file using conan package tools that are no longer supported"
This reverts commit a606d1dfe6e118199be8a371403717e3e42ad5da.
* Need to add a set_version to parse the version from CMakeLists.txt
Adding a package build yaml to ensure conan keeps building on 1 and 2
* Setting lowercase catch2 for pkg_config and cmake_target_name
* Fixing the namespace for conan file cmake_target_name
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/package-manager-builds.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/package-manager-builds.yaml b/.github/workflows/package-manager-builds.yaml new file mode 100644 index 00000000..cb55b753 --- /dev/null +++ b/.github/workflows/package-manager-builds.yaml @@ -0,0 +1,31 @@ +name: Package Manager Builds + +on: [push, pull_request] + +jobs: + conan_builds: + name: Conan ${{matrix.conan_version}} + runs-on: ubuntu-20.04 + strategy: + matrix: + conan_version: + - '1.62' + - '2.0' + + include: + # Conan 1 has default profiles installed + - conan_version: '1.62' + profile_generate: 'false' + + steps: + - uses: actions/checkout@v4 + + - name: Install conan + run: pip install conan==${{matrix.conan_version}} + + - name: Setup conan profiles + if: matrix.profile_generate != 'false' + run: conan profile detect + + - name: Run conan package create + run: conan create . -tf .conan/test_package |