This repository is for the CANBridge software that is run on non-roboRIO platforms.
- Git
- Visual Studio Code or some other equivalent IDE
- Gradle Build Tool
- Java JDK/JRE
All of these, excluding Git, can be installed and configured with the WPILib Installer, which will include specific versions for building FRC robot code. Gradle needs a C++ compiler, which is included with VS Code.
Building is done using the Gradle wrapper, gradlew
. The Gradle wrapper is located in the root of the project, so Gradle commands must be run from there.
- Clone this repository and open in VS Code
- When VS Code first opens, select
Add workspace folder...
underneathStart
on the Welcome Screen
- When VS Code first opens, select
- Open the VS Code terminal
View -> Terminal
orCtrl+`
- Run
./gradlew build
from root
The output is placed at ~\releases\maven\release\com\revrobotics\usb\CANBridge-cpp\<version>\
.
Before publishing a new version, run ./gradlew build
locally to run the tests. GitHub Actions
cannot run the tests because they depend on having a USB CAN device connected.
- Bump the version number in
publish.gradle
andCANBridge.json
- Commit the version bump
- Create a new tag named
vX.X.X
at that commit - Push the tag to GitHub
- Wait for the draft release to be created
- Add release notes to the draft release
- Publish the draft release
The SDK Changelog can be viewed with Changelog.md.