This section provides instructions for managing releases on the ZAP release page.
There are two types of prebuilt binaries available: official releases and pre-release releases.
Official releases are built from the rel
branch and are verified using dedicated Zigbee test suites. Pre-release releases, on the other hand, are built from the master
branch and are not fully verified as they carry the latest features.
Pushing a tag triggers the release creation CI process, which creates the build and posts it to the release page. The format of the tag name determines whether the release is an official release or a pre-release.
To create a pre-release, follow these steps:
- Checkout the
master
branch:
$ git checkout master
- Tag the pre-release using the format
vYYYY.MM.DD-nightly
and provide a descriptive message:
$ git tag -a vYYYY.MM.DD-nightly -m 'Pre-release build from master branch'
- Push the tag to the remote repository:
$ git push origin vYYYY.MM.DD-nightly
To create an official release, follow these steps:
- Checkout the
rel
branch:
$ git checkout rel
- Tag the release using the format
vYYYY.MM.DD
and provide a descriptive message:
$ git tag -a vYYYY.MM.DD -m 'ZAP official release vYYYY.MM.DD'
- Push the tag to the remote repository:
$ git push origin vYYYY.MM.DD
The latest ZAP version is always backwards compatible with all Matter releases. To update the Matter repository to the latest ZAP release, follow these steps and merge the changes into Matter's main repository:
- Run the version update script:
$ ./scripts/run_in_build_env.sh "./scripts/tools/zap/version_update.py --new-version [tagname from release instructions]"
-
Wait for the update to propagate: After running the script in step 1, it may take 0-6 hours for the updated ZAP release to be available in Matter. You can check the status here.
-
Create a PR in the Matter repository: Once the updated ZAP version is available, create a pull request (PR) in the Matter repository to incorporate the changes from step 1. This allows the main Matter repository to start using the latest ZAP version.