Skip to content

Commit

Permalink
Merge pull request #100 from ktbolt/master
Browse files Browse the repository at this point in the history
Add build files for Windows.
  • Loading branch information
ktbolt authored Jul 15, 2022
2 parents 789444c + aab96eb commit e2ce658
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,9 @@ jobs:
- name: Build
run: |
cd BuildWithMake
make
cd Release
make
cp sim*.msi ../../svOneDSolver-Windows.msi
dos2unix ./windows-build.sh
C:\cygwin64\bin\bash.exe -c "./build_windows_github.bat"
cp Release/sim*.msi ../svOneDSolver-Windows.msi
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 12 additions & 0 deletions BuildWithMake/build_windows_github.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
REM This file is used to setup the environment variables and start the build in
REM the GitHub Workflow

REM Call vcvars64.bat to setup environment variables like CL
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvars64.bat"

REM Build SimVascular
sh ./windows-build.sh

REM Make release executable BuildWithMake/SimVascular-VERSION-Windows-64bit-bundle.exe
cd Release
make
15 changes: 15 additions & 0 deletions BuildWithMake/windows-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

if hash CL 2>/dev/null; then
clfullpath=`which CL`
clparentdir="$(dirname "$clfullpath")"
export PATH=$clparentdir::$PATH
fi

if hash vsstrace.exe 2>/dev/null; then
rcfullpath=`which vsstrace.exe`
rcparentdir="$(dirname "$rcfullpath")"
export PATH=$rcparentdir:$PATH
fi

make

0 comments on commit e2ce658

Please sign in to comment.