Skip to content

Commit 10c294f

Browse files
authored
ci: Assign inputs to environment variables before using them in run statements
1 parent 1adbed7 commit 10c294f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/actions/conan/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,23 @@ runs:
2727
steps:
2828
- name: Create build directory
2929
shell: bash
30-
run: mkdir -p "${{ inputs.build_dir }}"
30+
env:
31+
BUILD_DIR: "${{ inputs.build_dir }}"
32+
run: mkdir -p "${BUILD_DIR}"
3133

3234
- name: Run conan
3335
shell: bash
3436
env:
35-
CONAN_BUILD_OPTION: "${{ inputs.force_conan_source_build == 'true' && '*' || 'missing' }}"
3637
BUILD_BENCHMARK: "${{ inputs.build_benchmark == 'true' && 'True' || 'False' }}"
38+
BUILD_TYPE: "${{ inputs.build_type }}"
39+
CONAN_BUILD_OPTION: "${{ inputs.force_conan_source_build == 'true' && '*' || 'missing' }}"
40+
CONAN_PROFILE: "${{ inputs.conan_profile }}"
3741
run: |
3842
conan \
3943
install . \
4044
-of build \
4145
-b "$CONAN_BUILD_OPTION" \
42-
-s "build_type=${{ inputs.build_type }}" \
46+
-s "build_type=${BUILD_TYPE}" \
4347
-o "&:tests=True" \
4448
-o "&:benchmark=${BUILD_BENCHMARK}" \
45-
--profile:all "${{ inputs.conan_profile }}"
49+
--profile:all "${CONAN_PROFILE}"

0 commit comments

Comments
 (0)