Skip to content

RCPP-89 Add 301/308 redirection support for HTTP transport requests #375

RCPP-89 Add 301/308 redirection support for HTTP transport requests

RCPP-89 Add 301/308 redirection support for HTTP transport requests #375

Workflow file for this run

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