Skip to content

Commit 89cb5f9

Browse files
committed
change env and path setting to safe format
1 parent 2b58f45 commit 89cb5f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
uses: actions-rs/toolchain@v1
9797
with: {toolchain: '${{matrix.rust}}', profile: minimal, override: true}
9898
- name: Install conda
99-
uses: goanpeca/setup-miniconda@v1
99+
uses: conda-incubator/setup-miniconda@v2
100100
with: {auto-update-conda: false, activate-environment: testenv}
101101
- name: Install HDF5 (${{matrix.version}}${{matrix.mpi && '-' || ''}}${{matrix.mpi}})
102102
run: |
@@ -170,7 +170,7 @@ jobs:
170170
fail-fast: false
171171
matrix:
172172
rust: [stable]
173-
version: [1.8, '1.10']
173+
version: ["1.8", "1.10"]
174174
steps:
175175
- name: Checkout repository
176176
uses: actions/checkout@v2
@@ -181,18 +181,18 @@ jobs:
181181
- name: Configure environment
182182
shell: bash
183183
run: |
184-
if [ "${{matrix.version}}" == "1.8" ]; then
184+
if [[ "${{matrix.version}}" == "1.8" ]]; then
185185
VERSION=1.8.21
186186
DL_PATH=hdf5-1.8.21-Std-win7_64-vs14.zip
187-
echo ::set-env name=MSI_PATH::hdf\\HDF5-1.8.21-win64.msi
187+
echo "MSI_PATH=hdf\\HDF5-1.8.21-win64.msi" >> $GITHUB_ENV
188188
else
189189
VERSION=1.10.0
190190
DL_PATH=windows/extra/hdf5-1.10.0-win64-VS2015-shared.zip
191-
echo ::set-env name=MSI_PATH::hdf5\\HDF5-1.10.0-win64.msi
191+
echo "MSI_PATH=hdf5\\HDF5-1.10.0-win64.msi" >> $GITHUB_ENV
192192
fi
193193
BASE_URL=https://support.hdfgroup.org/ftp/HDF5/prev-releases
194-
echo ::set-env name=DL_URL::$BASE_URL/hdf5-${{matrix.version}}/hdf5-$VERSION/bin/$DL_PATH
195-
echo ::add-path::C:\\Program Files\\HDF_Group\\HDF5\\$VERSION\\bin
194+
echo "DL_URL=$BASE_URL/hdf5-${{matrix.version}}/hdf5-$VERSION/bin/$DL_PATH" >> $GITHUB_ENV
195+
echo "C:\\Program Files\\HDF_Group\\HDF5\\$VERSION\\bin" >> $GITHUB_PATH
196196
- name: Install HDF5 (${{matrix.version}})
197197
shell: pwsh
198198
run: |

0 commit comments

Comments
 (0)