diff options
| author | Ulf Lilleengen <[email protected]> | 2025-07-14 12:00:17 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2025-07-14 12:00:17 +0200 |
| commit | 006f4cdb530b63156e6dd3bdfb094f2065f4c7bb (patch) | |
| tree | 1d85d26cf8cd2e739169145eb8bd42da08ed8bd0 /RELEASE.md | |
| parent | 7e01c9bb4d8039cbc4b719d8d8f07b9b63b65842 (diff) | |
chore: add release docs
Diffstat (limited to 'RELEASE.md')
| -rw-r--r-- | RELEASE.md | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 000000000..711a93ae4 --- /dev/null +++ b/RELEASE.md | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | # RELEASE.md | ||
| 2 | |||
| 3 | This document outlines the process for releasing Embassy crates using `cargo-release` and the `release/bump-dependency.sh` script. | ||
| 4 | |||
| 5 | When releasing a crate, keep in mind that you may need to recursively release dependencies as well. | ||
| 6 | |||
| 7 | ## Prerequisites | ||
| 8 | |||
| 9 | - Install [`cargo-release`](https://github.com/crate-ci/cargo-release): | ||
| 10 | |||
| 11 | ```sh | ||
| 12 | cargo binstall cargo-release | ||
| 13 | ``` | ||
| 14 | |||
| 15 | ## Crate release | ||
| 16 | |||
| 17 | Check if there are changes to the public API since the last release. If there is a breaking change, follow | ||
| 18 | the process for creating a minor release. Otherewise, follow the process for creating a new patch release. | ||
| 19 | |||
| 20 | Keep in mind that some crates may need the --features and --target flags passed to cargo release. For more information on that, | ||
| 21 | look at the `Cargo.toml` files. | ||
| 22 | |||
| 23 | ### Patch release (no breaking public API changes) | ||
| 24 | |||
| 25 | ``` | ||
| 26 | cd embassy-nrf/ | ||
| 27 | cargo release patch --features time,defmt,unstable-pac,gpiote,time-driver-rtc1,nrf52840 --target thumbv7em-none-eabi | ||
| 28 | |||
| 29 | # If dry-run is OK (no missing dependencies on crates.io) | ||
| 30 | cargo release patch --execute --features time,defmt,unstable-pac,gpiote,time-driver-rtc1,nrf52840 --target thumbv7em-none-eabi | ||
| 31 | ``` | ||
| 32 | |||
| 33 | ### Minor release | ||
| 34 | |||
| 35 | ``` | ||
| 36 | # Bump versions in crate files | ||
| 37 | ./release/bump-dependency.sh embassy-nrf 0.4.0 | ||
| 38 | |||
| 39 | # Commit version bump | ||
| 40 | git commit -am 'chore: update to `embassy-nrf` v0.4.0' | ||
| 41 | |||
| 42 | # Release crate | ||
| 43 | cd embassy-nrf/ | ||
| 44 | cargo release minor --features time,defmt,unstable-pac,gpiote,time-driver-rtc1,nrf52840 --target thumbv7em-none-eabi | ||
| 45 | |||
| 46 | # If dry-run is OK (no missing dependencies on crates.io) | ||
| 47 | cargo release minor --execute --features time,defmt,unstable-pac,gpiote,time-driver-rtc1,nrf52840 --target thumbv7em-none-eabi | ||
| 48 | ``` | ||
| 49 | |||
| 50 | ## Push tags | ||
| 51 | |||
| 52 | Push the git tags that `cargo release` created earlier: | ||
| 53 | |||
| 54 | ``` | ||
| 55 | git push --tags | ||
| 56 | ``` | ||
| 57 | ## Reference | ||
| 58 | |||
| 59 | * [PR introducing release automation](https://github.com/embassy-rs/embassy/pull/4289) | ||
