Skip to content

Commit a830773

Browse files
committed
install mpfr and OpenBLAS in another way
Signed-off-by: Nicolas Rol <[email protected]>
1 parent 3765f8f commit a830773

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed

.github/workflows/dev-ci.yml

+27-7
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,35 @@ jobs:
207207
- name: Checkout sources
208208
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
209209

210-
- name: Install vcpkg
210+
- name: Install MPFR and GMP via Chocolatey
211211
run: |
212-
git clone https://github.com/microsoft/vcpkg.git
213-
.\vcpkg\bootstrap-vcpkg.bat
212+
choco install mpfr --no-progress
213+
choco install gmp --no-progress
214214
215-
- name: Install dependencies with vcpkg
215+
- name: Configure MPFR paths
216216
run: |
217-
.\vcpkg\vcpkg.exe install openblas mpfr
218-
.\vcpkg\vcpkg.exe integrate install
217+
set MPFR_INCLUDE_DIR=C:\ProgramData\chocolatey\lib\mpfr\tools\include
218+
set MPFR_LIBRARY_DIR=C:\ProgramData\chocolatey\lib\mpfr\tools\lib
219+
220+
- name: Download OpenBLAS binaries
221+
run: |
222+
curl -L -o OpenBLAS.zip https://github.com/OpenMathLib/OpenBLAS/releases/download/v0.3.29/OpenBLAS-0.3.29-x64.zip
223+
mkdir C:\thirdparties\OpenBLAS
224+
tar -xf OpenBLAS.zip -C C:\thirdparties\OpenBLAS
225+
226+
- name: Configure OpenBLAS paths
227+
run: |
228+
set OPENBLAS_INCLUDE_DIR=C:\thirdparties\OpenBLAS\include
229+
set OPENBLAS_LIBRARY_DIR=C:\thirdparties\OpenBLAS\lib
219230
220231
- name: Configure 3rd parties
221232
run: >
222-
cmake -S %GITHUB_WORKSPACE%\metrix-simulator\external -B %GITHUB_WORKSPACE%\metrix-simulator\build\external
233+
cmake -S %GITHUB_WORKSPACE%\metrix-simulator\external
234+
-B %GITHUB_WORKSPACE%\metrix-simulator\build\external
235+
-DOPENBLAS_INCLUDE_DIR=%OPENBLAS_INCLUDE_DIR%
236+
-DOPENBLAS_LIBRARY_DIR=%OPENBLAS_LIBRARY_DIR%
237+
-DMPFR_INCLUDE_DIR=%MPFR_INCLUDE_DIR%
238+
-DMPFR_LIBRARY_DIR=%MPFR_LIBRARY_DIR%
223239
224240
- name: Build 3rd parties
225241
run: >
@@ -230,6 +246,10 @@ jobs:
230246
cmake -Wno-dev -S %GITHUB_WORKSPACE%\metrix-simulator -B %GITHUB_WORKSPACE%\metrix-simulator\build
231247
-DCMAKE_BUILD_TYPE=Release
232248
-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\metrix-simulator\build\install
249+
-DOPENBLAS_INCLUDE_DIR=%OPENBLAS_INCLUDE_DIR%
250+
-DOPENBLAS_LIBRARY_DIR=%OPENBLAS_LIBRARY_DIR%
251+
-DMPFR_INCLUDE_DIR=%MPFR_INCLUDE_DIR%
252+
-DMPFR_LIBRARY_DIR=%MPFR_LIBRARY_DIR%
233253
234254
- name: Build
235255
run: cmake --build %GITHUB_WORKSPACE%\metrix-simulator\build --target install --parallel 2 --config Release

0 commit comments

Comments
 (0)