File tree 1 file changed +16
-12
lines changed
1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -14,26 +14,30 @@ jobs:
14
14
- name : Checkout code
15
15
uses : actions/checkout@v3
16
16
17
+ - name : Ensure Chocolatey is installed
18
+ run : |
19
+ if (-Not (Test-Path "C:\ProgramData\Chocolatey\bin\choco.exe")) {
20
+ Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
21
+ }
22
+ choco upgrade chocolatey -y
23
+
17
24
- name : Install system dependencies
18
25
run : |
19
- # Install Chocolatey, which is a package manager for Windows
20
- Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
21
-
22
- # Install required packages using Chocolatey
23
26
choco install -y \
24
27
cmake \
25
- 7zip \
28
+ 7zip.install \
26
29
mingw \
27
- make \
28
- gcc \
29
- g++ \
30
- eigen3 \
31
- hdf5
30
+ make
32
31
33
32
- name : Download CADET-semi-analytic dependencies
34
33
run : |
35
- # Download and build the required libraries if needed
36
- # You can add additional download and extraction commands here if required for Project B
34
+ # Download and extract Eigen3
35
+ Invoke-WebRequest -Uri "https://gitlab.com/libeigen/eigen/-/archive/master/eigen-master.zip" -OutFile "eigen.zip"
36
+ 7z x eigen.zip -o"eigen"
37
+
38
+ # Download and extract HDF5
39
+ Invoke-WebRequest -Uri "https://www.hdfgroup.org/package/cmake-hdf5-1-14-0-zip/?wpdmdl=17553" -OutFile "hdf5.zip"
40
+ 7z x hdf5.zip -o"hdf5"
37
41
38
42
- name : Create build directory
39
43
run : mkdir build && cd build
You can’t perform that action at this time.
0 commit comments