VS Code extension to switch all machines to the same branch, configure, and build.
This extension is easier to use if you synchronize
your settings.json file across all of your computers.
Tip
Currently, only Git and CMake are supported for now. Please open a feature request issue if you want support for other tools, custom commands, etc.
- Download the latest release
- Open VS Code
- Go to 'Extensions'
- Click the 3-dots menu
- Ciick 'Install from VSIX'
- Open the downloaded .vsix file
Prerequisites:
- The extension should automatically create an entry in
settings.json,multiBuild.server.roomId, and if you have your VS Code setup to sync your settings, this room ID will automatically be shared on all your computers. You may need to force-sync as VS Code can have a mind of its own. - When the extension loads, it'll ask you to sign in to GitHub, which securely synchronizes data between each computer over the Internet (this is done via WebSockets).
Steps:
- Press F1
- Find 'Multi-Build: Sync'
- Enter your repo, remote, and branch name
If you did it right, all computers checkout the same branch, configure, and build.
If you develop on multiple computers and need to test a PR, you have likely found yourself getting tired of doing the following on each computer: checkout a branch, pull changes, configure, and build. Doing this on two computers isn't too much of a chore, but what if you have three, four, or more? Then it starts to get really tedious.
Multi-Build makes it possible to test a PR on multiple computers with a single command.
Yes, when we get enough requests. Right now you have to manually install the .vsix which isn't too hard.
We run a WebSockets server that your computers will connect to securely via a GitHub auth token. When you run the sync command, all computers will receive it along with what repo, remote, and branch to checkout and pull. Once checkout is done, the configure and build commands run so that all computers have build the same version.
