feat: Add init_conan script (#2242)

This should make life of a developer so much easier
This commit is contained in:
Ayaz Salikhov
2025-06-26 17:12:32 +01:00
committed by GitHub
parent 4f7e8194f0
commit 363344d36e
8 changed files with 86 additions and 77 deletions

View File

@@ -77,11 +77,10 @@ jobs:
with:
disable_ccache: ${{ inputs.disable_cache }}
- name: Setup conan
- name: Setup conan on macOS
if: runner.os == 'macOS'
uses: ./.github/actions/setup_conan_macos
with:
conan_files_dir: docker/ci/conan/
shell: bash
run: ./.github/scripts/conan/init.sh
- name: Restore cache
if: ${{ !inputs.disable_cache }}

View File

@@ -15,7 +15,12 @@ on:
- develop
paths:
- .github/workflows/upload_conan_deps.yml
- .github/scripts/generate_conan_matrix.py
- .github/actions/generate/action.yml
- .github/actions/prepare_runner/action.yml
- .github/scripts/conan/generate_matrix.py
- .github/scripts/conan/init.sh
- conanfile.py
- conan.lock
push:
@@ -23,7 +28,12 @@ on:
- develop
paths:
- .github/workflows/upload_conan_deps.yml
- .github/scripts/generate_conan_matrix.py
- .github/actions/generate/action.yml
- .github/actions/prepare_runner/action.yml
- .github/scripts/conan/generate_matrix.py
- .github/scripts/conan/init.sh
- conanfile.py
- conan.lock
@@ -41,7 +51,7 @@ jobs:
- name: Calculate conan matrix
id: set-matrix
run: .github/scripts/generate_conan_matrix.py >> "${GITHUB_OUTPUT}"
run: .github/scripts/conan/generate_matrix.py >> "${GITHUB_OUTPUT}"
upload-conan-deps:
name: Build ${{ matrix.compiler }}${{ matrix.sanitizer_ext }} ${{ matrix.build_type }}
@@ -66,11 +76,10 @@ jobs:
with:
disable_ccache: true
- name: Setup conan
- name: Setup conan on macOS
if: runner.os == 'macOS'
uses: ./.github/actions/setup_conan_macos
with:
conan_files_dir: docker/ci/conan/
shell: bash
run: ./.github/scripts/conan/init.sh
- name: Show conan profile
run: conan profile show --profile:all ${{ env.CONAN_PROFILE }}