Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating Windows CI/CD Setup with Caldera Grid Develop branch #26

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from
45 changes: 45 additions & 0 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: C/C++ CI

on:
push

jobs:
example_matrix:
strategy:
matrix:
os: [windows-latest]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}
defaults:
run:
shell: cmd # Switch to cmd since we are on Windows and using MSVC

steps:
- uses: actions/checkout@v3

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
pip install pandas
pip install "pybind11[global]"
pip install cvxopt
pip install "OpenDSSDirect.py[extras]"
pip install helics
pip install numpy

- name: Configure build
run: |
# Windows specific commands
mkdir build
cd build
cmake -DICM=ON -DCMAKE_INSTALL_PREFIX=$HOME/my-project-installation ..
cmake --build . --config Release --parallel 4
cmake --install .

- name: Start Execute Script
run: python start_execution.py