Skip to content

Commit 8645ed1

Browse files
committed
Update a way to define variable for conda build command on Linux
1 parent a772570 commit 8645ed1

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/conda-package-cf.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ jobs:
6363

6464
- name: Build conda package with NumPy 2.x
6565
run: |
66-
CHANNELS="-c conda-forge --override-channels"
67-
VERSIONS="--python ${{ matrix.python }} --numpy ${{ matrix.numpy }}"
68-
TEST="--no-test"
66+
CHANNELS=(-c conda-forge --override-channels)
67+
VERSIONS=(--python "${{ matrix.python }}" --numpy "${{ matrix.numpy }}")
68+
TEST=(--no-test)
6969
7070
conda build \
71-
$TEST \
72-
"$VERSIONS" \
73-
"$CHANNELS" \
71+
"${TEST[@]}" \
72+
"${VERSIONS[@]}" \
73+
"${CHANNELS[@]}" \
7474
conda-recipe-cf
7575
7676
- name: Upload artifact

.github/workflows/conda-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ jobs:
5555

5656
- name: Build conda package
5757
run: |
58-
CHANNELS="-c https://software.repos.intel.com/python/conda -c conda-forge --override-channels"
59-
VERSIONS="--python ${{ matrix.python }}"
60-
TEST="--no-test"
58+
CHANNELS=(-c https://software.repos.intel.com/python/conda -c conda-forge --override-channels)
59+
VERSIONS=(--python "${{ matrix.python }}")
60+
TEST=(--no-test)
6161
6262
conda build \
63-
$TEST \
64-
"$VERSIONS" \
65-
"$CHANNELS" \
63+
"${TEST[@]}" \
64+
"${VERSIONS[@]}" \
65+
"${CHANNELS[@]}" \
6666
conda-recipe
6767
6868
- name: Upload artifact

0 commit comments

Comments
 (0)