Build SasView using any branch from sibling repositories - SasView/sasview GitHub Wiki
Work-in-progress This procedure is not finalized and is for testing purposes only. Please modify this page as you find issues.
During development of SasView, changes are often made to one of the sibling repositories, which currently include bumps, sasdata, and sasmodels. The ideal method for testing bug fixes and new features is using an installed version that an end-user would see. This procedure allows a developer to generate SasView distributables using branches that have not been merged in sibling repositories.
If you have changes made in the sasview repository, checkout your branch, referred to as <new_sasview_branch> and skip the rest of this step. Otherwise, create a new SasView branch based off the branch you want your sibling changes to be incorporated into. This will typically be mainโ, but could be a specific release branch
git branch <new_sasview_branch>โ <main|release_x.y.z>โ; git checkout <new_sasview_branch>
or
git checkout -b <new_sasview_branch>โ <main|release_x.y.z>โ
Search the file for Fetch sources of sibling projectsโ
Change the line git clone --depth=50 --branch=<master|release_x.y.z>โ https://github.com/<bumps|SasView>/<sibling>.git ../<sibling>โ to git clone --depth=50 --branch=<sibling_branch> https://github.com/<bumps|SasView>/<sibling>.git ../<sibling>โ for the sibling repository or repositories you've made changes to.
Add your changes
git add ci.yml
Commit your changes with a useful message
git commit -m "Use <sibling> branch <sibling_branch> in CI"
Push your changes to GitHub
git push
Navigate to https://github.com/SasView/sasview/actions
In the Filter workflow runsโ search box, search for branch:<new_sasview_branch>โ with no space between branch and <new_sasview_branch>.
Click on the commit message link, which should be the first column of the table, to get to the summary page for the workflow.
Scroll down to the bottom of the page to find a list of available downloads and download the installer specific to your operating system.
Note - Do โ_NOT_ attempt to install the Debugโ version of the installer. It is for testing purposes only.
Once your testing is complete and you feel the changes in the sibling repository are working as expected, one of two things needs to happen.
- If your SasView branch has no other changes that require a PR, <new_sasview_branch> can be deleted.
- If your SasView branch is in the PR stage, all sibling PRs MUST be merged before the SasView PR. As each sibling branch is merged, the SasView workflow should be modified back to the original
--branch==<master|release_x.y.z>for that sibling repository.