style: Improve actions and workflows style (#2060)

This commit is contained in:
Ayaz Salikhov
2025-04-30 11:55:27 +01:00
committed by GitHub
parent 5860a90b94
commit b2a1b34ae6
23 changed files with 77 additions and 18 deletions

View File

@@ -1,5 +1,6 @@
name: Run conan and cmake
description: Run conan and cmake
inputs:
conan_profile:
description: Conan profile name
@@ -27,7 +28,13 @@ inputs:
sanitizer:
description: Sanitizer to use
required: true
default: "false" # false, tsan, asan or ubsan
default: "false"
choices:
- "false"
- "tsan"
- "asan"
- "ubsan"
runs:
using: composite
steps:
@@ -44,7 +51,17 @@ runs:
INTEGRATION_TESTS_OPTION: "${{ inputs.build_integration_tests == 'true' && 'True' || 'False' }}"
run: |
cd build
conan install .. -of . -b $BUILD_OPTION -s build_type=${{ inputs.build_type }} -o clio:static="${STATIC_OPTION}" -o clio:tests=True -o clio:integration_tests="${INTEGRATION_TESTS_OPTION}" -o clio:lint=False -o clio:coverage="${CODE_COVERAGE}" --profile ${{ inputs.conan_profile }}
conan \
install .. \
-of . \
-b $BUILD_OPTION \
-s build_type=${{ inputs.build_type }} \
-o clio:static="${STATIC_OPTION}" \
-o clio:tests=True \
-o clio:integration_tests="${INTEGRATION_TESTS_OPTION}" \
-o clio:lint=False \
-o clio:coverage="${CODE_COVERAGE}" \
--profile ${{ inputs.conan_profile }}
- name: Run cmake
shell: bash
@@ -57,4 +74,9 @@ runs:
'' }}
run: |
cd build
cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake -DCMAKE_BUILD_TYPE="${BUILD_TYPE}" ${SANITIZER_OPTION} .. -G Ninja
cmake \
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
${SANITIZER_OPTION} \
.. \
-G Ninja