mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
ci: Use env vars instead of input (#2781)
This commit is contained in:
3
.github/actions/cmake/action.yml
vendored
3
.github/actions/cmake/action.yml
vendored
@@ -44,6 +44,7 @@ runs:
|
|||||||
- name: Run cmake
|
- name: Run cmake
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
BUILD_DIR: "${{ inputs.build_dir }}"
|
||||||
BUILD_TYPE: "${{ inputs.build_type }}"
|
BUILD_TYPE: "${{ inputs.build_type }}"
|
||||||
SANITIZER_OPTION: |-
|
SANITIZER_OPTION: |-
|
||||||
${{ endsWith(inputs.conan_profile, '.asan') && '-Dsan=address' ||
|
${{ endsWith(inputs.conan_profile, '.asan') && '-Dsan=address' ||
|
||||||
@@ -58,7 +59,7 @@ runs:
|
|||||||
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
|
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
|
||||||
run: |
|
run: |
|
||||||
cmake \
|
cmake \
|
||||||
-B ${{inputs.build_dir}} \
|
-B "${BUILD_DIR}" \
|
||||||
-S . \
|
-S . \
|
||||||
-G Ninja \
|
-G Ninja \
|
||||||
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
|
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
|
||||||
|
|||||||
11
.github/actions/conan/action.yml
vendored
11
.github/actions/conan/action.yml
vendored
@@ -28,11 +28,14 @@ runs:
|
|||||||
- name: Run conan
|
- name: Run conan
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
|
BUILD_DIR: "${{ inputs.build_dir }}"
|
||||||
CONAN_BUILD_OPTION: "${{ inputs.force_conan_source_build == 'true' && '*' || 'missing' }}"
|
CONAN_BUILD_OPTION: "${{ inputs.force_conan_source_build == 'true' && '*' || 'missing' }}"
|
||||||
|
BUILD_TYPE: "${{ inputs.build_type }}"
|
||||||
|
CONAN_PROFILE: "${{ inputs.conan_profile }}"
|
||||||
run: |
|
run: |
|
||||||
conan \
|
conan \
|
||||||
install . \
|
install . \
|
||||||
-of build \
|
-of "${BUILD_DIR}" \
|
||||||
-b "$CONAN_BUILD_OPTION" \
|
-b "${CONAN_BUILD_OPTION}" \
|
||||||
-s "build_type=${{ inputs.build_type }}" \
|
-s "build_type=${BUILD_TYPE}" \
|
||||||
--profile:all "${{ inputs.conan_profile }}"
|
--profile:all "${CONAN_PROFILE}"
|
||||||
|
|||||||
Reference in New Issue
Block a user