Skip to content

Commit 9dba4a5

Browse files
committed
wip
1 parent 3da001f commit 9dba4a5

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/ci.yml

+16-12
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,30 @@ jobs:
1414
- name: Checkout code
1515
uses: actions/checkout@v3
1616

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+
1724
- name: Install system dependencies
1825
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
2326
choco install -y \
2427
cmake \
25-
7zip \
28+
7zip.install \
2629
mingw \
27-
make \
28-
gcc \
29-
g++ \
30-
eigen3 \
31-
hdf5
30+
make
3231
3332
- name: Download CADET-semi-analytic dependencies
3433
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"
3741
3842
- name: Create build directory
3943
run: mkdir build && cd build

0 commit comments

Comments
 (0)