Skip to content

Commit 00a9760

Browse files
committed
replace tar commande with zip
Signed-off-by: Nicolas Rol <[email protected]>
1 parent 2e6b770 commit 00a9760

File tree

1 file changed

+25
-21
lines changed

1 file changed

+25
-21
lines changed

Diff for: .github/workflows/dev-ci.yml

+25-21
Original file line numberDiff line numberDiff line change
@@ -219,41 +219,45 @@ jobs:
219219
run: |
220220
curl -L -o OpenBLAS.zip https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.29/OpenBLAS-0.3.29-x64.zip
221221
mkdir C:\thirdparties\OpenBLAS
222-
tar -xf OpenBLAS.zip -C C:\thirdparties\OpenBLAS
222+
powershell -Command "Expand-Archive -Path OpenBLAS.zip -DestinationPath C:\thirdparties\OpenBLAS"
223223
224224
- name: Configure environment variables for dependencies
225225
run: |
226-
echo "export OPENBLAS_INCLUDE_DIR=C:/thirdparties/OpenBLAS/include" >> $GITHUB_ENV
227-
echo "export OPENBLAS_LIBRARY_DIR=C:/thirdparties/OpenBLAS/lib" >> $GITHUB_ENV
228-
echo "export GMP_INCLUDE_DIR=/mingw64/include" >> $GITHUB_ENV
229-
echo "export GMP_LIBRARY_DIR=/mingw64/lib" >> $GITHUB_ENV
230-
echo "export MPFR_INCLUDE_DIR=/mingw64/include" >> $GITHUB_ENV
231-
echo "export MPFR_LIBRARY_DIR=/mingw64/lib" >> $GITHUB_ENV
226+
echo "OPENBLAS_INCLUDE_DIR=C:/thirdparties/OpenBLAS/include" >> $GITHUB_ENV
227+
echo "OPENBLAS_LIBRARY_DIR=C:/thirdparties/OpenBLAS/lib" >> $GITHUB_ENV
228+
echo "GMP_INCLUDE_DIR=/mingw64/include" >> $GITHUB_ENV
229+
echo "GMP_LIBRARY_DIR=/mingw64/lib" >> $GITHUB_ENV
230+
echo "MPFR_INCLUDE_DIR=/mingw64/include" >> $GITHUB_ENV
231+
echo "MPFR_LIBRARY_DIR=/mingw64/lib" >> $GITHUB_ENV
232232
233233
- name: Configure 3rd parties
234234
run: >
235235
cmake -S ${{ github.workspace }}/metrix-simulator/external
236-
-B ${{ github.workspace }}/metrix-simulator/build/external
237-
-DOPENBLAS_INCLUDE_DIR=$OPENBLAS_INCLUDE_DIR
238-
-DOPENBLAS_LIBRARY_DIR=$OPENBLAS_LIBRARY_DIR
239-
-DGMP_INCLUDE_DIR=$GMP_INCLUDE_DIR
240-
-DGMP_LIBRARY_DIR=$GMP_LIBRARY_DIR
241-
-DMPFR_INCLUDE_DIR=$MPFR_INCLUDE_DIR
242-
-DMPFR_LIBRARY_DIR=$MPFR_LIBRARY_DIR
236+
-B ${{ github.workspace }}/metrix-simulator/build/external
237+
-DOPENBLAS_INCLUDE_DIR=$OPENBLAS_INCLUDE_DIR
238+
-DOPENBLAS_LIBRARY_DIR=$OPENBLAS_LIBRARY_DIR
239+
-DGMP_INCLUDE_DIR=$GMP_INCLUDE_DIR
240+
-DGMP_LIBRARY_DIR=$GMP_LIBRARY_DIR
241+
-DMPFR_INCLUDE_DIR=$MPFR_INCLUDE_DIR
242+
-DMPFR_LIBRARY_DIR=$MPFR_LIBRARY_DIR
243243
244244
- name: Build 3rd parties
245245
run: >
246246
cmake --build ${{ github.workspace }}/metrix-simulator/build/external --config Release
247247
248248
- name: Configure CMake
249249
run: >
250-
cmake -Wno-dev -S ${{ github.workspace }}/metrix-simulator -B ${{ github.workspace }}/metrix-simulator/build
251-
-DCMAKE_BUILD_TYPE=Release
252-
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/metrix-simulator/build/install
253-
-DOPENBLAS_INCLUDE_DIR=%OPENBLAS_INCLUDE_DIR%
254-
-DOPENBLAS_LIBRARY_DIR=%OPENBLAS_LIBRARY_DIR%
255-
-DMPFR_INCLUDE_DIR=%MPFR_INCLUDE_DIR%
256-
-DMPFR_LIBRARY_DIR=%MPFR_LIBRARY_DIR%
250+
cmake -Wno-dev
251+
-S ${{ github.workspace }}/metrix-simulator
252+
-B ${{ github.workspace }}/metrix-simulator/build
253+
-DCMAKE_BUILD_TYPE=Release
254+
-DCMAKE_INSTALL_PREFIX=${{ github.workspace }}/metrix-simulator/build/install
255+
-DOPENBLAS_INCLUDE_DIR=$OPENBLAS_INCLUDE_DIR
256+
-DOPENBLAS_LIBRARY_DIR=$OPENBLAS_LIBRARY_DIR
257+
-DGMP_INCLUDE_DIR=$GMP_INCLUDE_DIR
258+
-DGMP_LIBRARY_DIR=$GMP_LIBRARY_DIR
259+
-DMPFR_INCLUDE_DIR=$MPFR_INCLUDE_DIR
260+
-DMPFR_LIBRARY_DIR=$MPFR_LIBRARY_DIR
257261
258262
- name: Build
259263
run: cmake --build ${{ github.workspace }}/metrix-simulator/build --target install --parallel 2 --config Release

0 commit comments

Comments
 (0)