RCPP-89 Add 301/308 redirection support for HTTP transport requests #375
This file contains 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 Conan integration | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
build_type: [Debug, Release] | |
linkage_is_dynamic: ["True", "False"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Select Python 3.10 | |
if: matrix.os == 'macos-latest' | |
# otherwise turtlebrowser/[email protected] fails on macos-12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install Conan | |
id: conan | |
uses: turtlebrowser/get-conan@main | |
- name: Conan version | |
run: echo "${{ steps.conan.outputs.version }}" | |
- name: Conan profile detect | |
working-directory: . | |
run: | | |
conan profile detect | |
- name: Update Conan profile | |
if: matrix.os == 'windows-latest' | |
run: | | |
$profilePath = "$env:USERPROFILE\.conan2\profiles\default" | |
$content = Get-Content -Path $profilePath | |
$content = $content -replace 'compiler.cppstd=14', 'compiler.cppstd=17' | |
$content | Set-Content -Path $profilePath | |
- name: Conan create | |
working-directory: . | |
run: | | |
conan create . -tf="tests" -s build_type=${{ matrix.build_type }} -o shared=${{ matrix.linkage_is_dynamic }} --build=missing | |
- name: Open a tmate debug session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
with: | |
timeout-minutes: 15 |