Skip to content

Sustainable Analytical Model (SAM) - Installation repository

Notifications You must be signed in to change notification settings

HoareLea/SAM_Deploy

Repository files navigation

SAM_Deploy

This is the managed release repository for SAM.

To find out more about sam visit https://github.com/HoareLea/SAM

Build Status

Release Status

Installing

Dowload latest release here:

https://github.com/HoareLea/SAM_Deploy/releases/latest/download/SAM_Install.exe

*Add New Repository to deploy

git submodule add https://github.com/HoareLea/SAM_OpenStudio.git

Debugging or building it yourself

Each repository is included as a submodule which means they only point to a set commit with detached head, see

https://git-scm.com/book/en/v2/Git-Tools-Submodules

https://blog.tech-fellow.net/2019/05/09/effectively-work-with-git-submodules/

To clone with all submodules included do:

git clone --recurse-submodules https://github.com/HoareLea/SAM_Deploy.git

or, if you've already cloned it:

git submodule update --init --recursive

Updating the submodules to latest commits

First enable full commit history for git diff, this only needs to be done once:

git config --global diff.submodule log
git config --global status.submoduleSummary true

Then each time you want update:

git pull
git submodule update --remote
git add .
git commit .

The commit message should be autogenerated and opened in your associated editor (e.g. VS Code), remove "#" from all the lines and tidy the message up a bit, save, then:

git push

Done, changes committed to master will trigger a new build and release.