Follow these steps to create a new release:
Write the new version in
VERSION.txt
. The version should hace the format<major>.<minor>.<revision>
.Increment
<major>
for non-backwards compatible changes.Increment
<minor>
for new features.Increment
<revision>
for bug fixes.- Write the new version in
package.json
. This file is used by PlatformIO 3 to find the current Simba release. Run the test suites and generate the documentation.
make test-all-boards make release-test
Generate files for Arduino.
make arduino
- Add the new releases to
make/arduino/<family>/package_simba_<family>_index.json
. The sha256 sums of the zip-archives are calculated bymake arduino
and written tosimba-arduino/*.sha256
. Copy the Simba Arduino releases to SourceForge.
scp simba-arduino/simba-arduino-avr-*.zip <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/avr scp simba-arduino/simba-arduino-sam-*.zip <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/sam scp simba-arduino/simba-arduino-esp-*.zip <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/esp scp simba-arduino/simba-arduino-esp32-*.zip <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/esp32
Start a http server used to download package manifests in the Arduino IDE.
(cd make/arduino && python -m SimpleHTTPServer)
Start the Arduino IDE and add these URL:s in Preferences.
http://localhost:8000/avr/package_simba_avr_index.json http://localhost:8000/esp/package_simba_esp_index.json http://localhost:8000/esp32/package_simba_esp32_index.json http://localhost:8000/sam/package_simba_sam_index.json
- Install all four packages and run the blink example for each one of them.
- Commit the changes, and tag the commit with the new version.
- Push the new commit and tag.
- Copy the Simba Arduino package manifests to SourceForge.
scp make/arduino/avr/package_simba_avr_index.json <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/avr scp make/arduino/sam/package_simba_sam_index.json <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/sam scp make/arduino/esp/package_simba_esp_index.json <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/esp scp make/arduino/esp32/package_simba_esp32_index.json <user>@frs.sourceforge.net:/home/frs/project/simba-arduino/esp32
- Download the release zip-file from Github and calculate its SHA1 checksum. Upload the zip-file to sourceforge and add the new releases to
make/platformio/manifest.json
.
wget https://github.com/eerimoq/simba/archive/<version>.zip sha1sum <version>.zip scp <version>.zip <user>@frs.sourceforge.net:/home/frs/project/simba-platformio/
- Commit and push.
- Done.