Skip to content

Commit

Permalink
First build
Browse files Browse the repository at this point in the history
  • Loading branch information
asra-naseem authored Sep 29, 2023
1 parent f29c8bc commit ab479a4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: C/C++ CI
on:
push:

jobs:
example_matrix:
strategy:
matrix:
os: [ubuntu-22.04, macos-latest]
python-version: ["3.7"]
compiler: [gcc]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash # Use bash for all run steps by default
steps:
- uses: actions/checkout@v3

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

- name: Install compiler
id: install_cc
uses: rlalik/setup-cpp-compiler@master
with:
compiler: ${{ matrix.compiler }}

- 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: |
mkdir -p build
cd build
rm -rf *
pwd
cmake -DICM=ON -DCMAKE_INSTALL_PREFIX=$HOME/my-project-installation ..
make
make install

0 comments on commit ab479a4

Please sign in to comment.