Skip to content

Commit

Permalink
Corrected Compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
asra-naseem authored Sep 11, 2023
1 parent e53c572 commit e826d5b
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/github_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ jobs:
matrix:
os: [windows-latest]
python-version: ["3.10"]

runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash # Use bash for all run steps by default
shell: cmd # Switch to cmd since we are on Windows and using MSVC

steps:
- uses: actions/checkout@v3

Expand All @@ -22,27 +23,16 @@ jobs:
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
pip install -r requirements.txt
- name: Configure build with MSVC
run: |
# Windows specific commands
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
mkdir build
cd build
cmake -DICM=ON -DCMAKE_INSTALL_PREFIX=$HOME/my-project-installation ..
cmake -G "Visual Studio 16 2019" -A x64 -DICM=ON -DCMAKE_INSTALL_PREFIX=%USERPROFILE%/my-project-installation ..
cmake --build . --config Release --parallel 4
cmake --install .
Expand Down

0 comments on commit e826d5b

Please sign in to comment.