The "trunk-based" development strategy is used for releases of Arduino IDE. A branch named <major>.<minor>.x
(where <major>.<minor>
is the major and minor version numbers), is created for each minor version series. Release tags (both pre-release and production) are created from these branches. This allows a release to be created from a select subset of the commits in the main
branch, cherry-picked to the release branch.
The following are the steps to follow to make a release of Arduino IDE:
A pull request titled "Update translation files" is submitted periodically by the "github-actions" bot to pull in the localization data from Transifex.
If there is an open PR, this must be merged before making the release.
It will be shown in these search results:
https://github.com/arduino/arduino-ide/pulls/app%2Fgithub-actions
The Arduino IDE release includes several tool dependencies. Unstable versions of these tools may be pinned provisionally for use with the development version of Arduino IDE, but production releases of Arduino IDE must use production releases of the tool dependencies.
The tool versions are defined in the arduino
object of arduino-ide-extension/package.json
.
If any of the tools are pinned to a development version, ensure a suitable production release of the tool is available and then submit a PR to update the version in arduino-ide-extension/package.json
.
The version
field of the project's package.json
metadata files received a patch version bump (e.g., 2.0.1
-> 2.0.2
) at the time of the previous release.
If this is a patch release, the current metadata values are correct and no action is needed.
The changes contained in this release might be considered to change the project's "API". If so, a patch version bump will not be appropriate and the version must be adjusted in compliance with the Semantic Versioning Specification.
Follow the instructions for updating the version metadata here.
If the version number of the previous release was 2.0.1
:
- If this is considered a minor release (non-breaking changes to the "API"), the
version
values must be changed to2.1.0
. - If this is considered a major release (breaking changes to the "API"), the
version
values must be changed to3.0.0
.
A new release branch must be created on every minor version bump. For example, if you are making the 2.2.0
release, then it is necessary to create a branch named 2.2.x
. That branch will be used for all subsequent releases in the 2.2
minor version series (e.g., 2.2.1
, 2.2.2
).
Push all commits that are to be included in the release to the release branch. This can be a cherry-picked subset of the commits from the main
branch if not all the work from main
is ready for release.
The checks run by the continuous integration system might provide an indication of a problem that should block the release. Since the code in the release branch doesn't necessarily match to that of the main
branch, it is essential to check the status of the release branch even when everything is passing in the main
branch.
- Open the following URL in your browser:
https://github.com/arduino/arduino-ide/actions - Type
branch:<release branch>
(where<release branch>
is the name of the release branch for this release) in the "Filter workflow runs" field of the "Actions" page. - Press the Enter key.
- Wait for all in progress workflow runs to finish.
- Click on the first workflow name on the list at the left side of the page.
- Check the status of the latest run. If it was not successful, investigate the cause and determine if it is of significance to the release.
- Repeat the above steps for each of the listed workflows.
The "Arduino IDE" workflow run that was triggered by the branch creation will contain artifacts that can be used for beta testing.
More information about beta testing
Then, you need to create and push the new tag and wait for the release to appear on the "Releases" page.
⚠ Doing this will create a new release and users who already have the IDE installed will be notified from the automatic updater that a new version is available. Do not push the tag if you don't want that.
- Checkout the release branch in the repository.
- Run the following commands:
git pull git tag -a <YOUR_VERSION> -m "<YOUR_VERSION>" git push origin <YOUR_VERSION>
Pushing a tag will trigger a GitHub Actions workflow on the main
branch. Check the "Arduino IDE" workflow and see that everything goes right. If the workflow succeeds, a new release will be created automatically and you should see it on the "Releases" page.
In order for the version number of the tester and nightly builds to have correct precedence compared to the release version, the version
field of the project's package.json
files must be given a patch version bump (e.g., 2.0.1
-> 2.0.2
) after the creation of the release tag.
Follow the instructions for updating the version metadata here.
Create GitHub issues for the known issues that we haven't solved in the current release:
https://github.com/arduino/arduino-ide/issues
From the "Releases" page, edit the release notes following the Keep A Changelog scheme:
https://keepachangelog.com/en/1.0.0/#how
Add a list of mentions of GitHub users who contributed to the release in any of the following ways (ask @per1234):
- Submitted a PR that was merged
- Made a valuable review of a PR
- Submitted an issue that was resolved
- Provided valuable assistance with the investigation of an issue that was resolved
Add a "Known Issues" section at the bottom of the changelog.
Open a PR on the bcmi-labs/wiki-content repository to update the links and texts.
ℹ️ If you don't have access to the repo, ask in the #team_wedo
Slack channel.
❗ Make sure all the links to the new IDE build are working.
If they aren't, there has probably been some issue with the "Arduino IDE" workflow run triggered when pushing the tag during the "Create the release on GitHub" step of the release procedure.
Ask for a review of the PR and merge it.
Follow the "Production (subset of https://arduino.cc)" instructions in the bcmi-labs/wiki-content
repository readme to deploy the updated "Software" page content.
When the deploy workflow is done, check if links on the "Software" page are working:
https://www.arduino.cc/en/software#future-version-of-the-arduino-ide
- Ask in the
#product_releases
Slack channel to write a post for the social media and, if needed, a blog post. - Post a message on the forum (ask @per1234).
Example: https://forum.arduino.cc/t/arduino-ide-2-0-0-rc9-3-available-for-download/1028858/4 - Write a message in the
#general
Slack channel:Hey Arduinos! Updates from the Tooling Team 🛠️
Arduino IDE 2.0.0 Beta 12 is out! :doge: You can download it from the Download Page The highlights of this release are:
- auto-installation of arduino:avr at first startup
- improvement of Serial Monitor performances
- Arduino CLI upgrade to 0.19.1
- Theia upgrade to 1.18.0
- some bugfixing
To see the details, you can take a look at the Changelog If you want to post about it on social media and you need more details feel free to ask us on #team_tooling! 😉
The following are detailed descriptions of operations performed during the release process:
You need to set the new version in all the package.json
files across the app (./package.json
, ./arduino-ide-extension/package.json
, and ./electron-app/package.json
), create a PR, and merge it on the main
branch.
To do so, you can make use of the update:version
script.
For example, if you want to update the version to <YOUR_VERSION>
, you should run the following commands:
git checkout main
git pull
git checkout -b version-<YOUR_VERSION>
yarn update:version <YOUR_VERSION>
git commit -am <YOUR_VERSION>
git push origin version-<YOUR_VERSION>
replacing <YOUR_VERSION>
with the version you want. Then create a PR and merge it.
Creating the release for Ubuntu 18.04 (arduino/arduino-ide#2018) and macOS M1 (arduino/arduino-ide#408) is a manual procedure.
-
Prerequisites:
- Ask the DevOps team for an EC2 instance with at least 8 GB of RAM.
- Your account must have access to the staging AWS environment.
- You have VPN connection to staging.
-
Setup:
- To install all required dependencies, run the following script:
sudo apt update \ && sudo apt install --no-install-recommends --yes \ git \ gcc \ curl \ make \ python \ pkg-config \ libx11-dev \ libxkbfile-dev \ build-essential \ libsecret-1-dev \ && wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \ && source ~/.bashrc \ && nvm install 16 \ && nvm use 16 \ && nvm alias default 16 \ && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \ && echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \ && sudo apt update && sudo apt install --no-install-recommends yarn
- To install all required dependencies, run the following script:
-
Clone:
BRANCH="<TODO: release branch name>" git clone --single-branch --branch $BRANCH https://github.com/arduino/arduino-ide.git
-
Build:
export IS_RELEASE=true \ && export CI=true \ && ./scripts/package.sh
-
Artifacts:
- You have to upload the following artifacts from
./arduino-ide/electron-app/dist
to S3:arduino-ide_${VERSION}_Linux_64bit.AppImage
,arduino-ide_${VERSION}_Linux_64bit.zip
, andstable-linux.yml
- You have to upload the following artifacts from
-
Prerequisites:
- You need access to the shared Mac Mini at Toolbox. Use TeamViewer.
- You have access to the
FT Web Tooling
1Password vault.
-
Clone:
BRANCH="<TODO: release branch name>" git clone --single-branch --branch $BRANCH https://github.com/arduino/arduino-ide.git
-
Setup:
-
Download the
Pro-IDE-Certificates.p12
file from theArduino Pro IDE Apple Developer ID Certificate .p12 format
1Password vault item and put it somewhere on the Mac Mini. This example assumes you put the.p12
file in thearduino-ide
repository root, and yourcwd
is also in thearduino-ide
repository root. -
The following environment variables must be available from the shell:
AC_PASSWORD
: From theArduino Apple developer ID App Specific Password
1Password vault itemAC_USERNAME
: From theArduino Apple developer ID App Specific Password
1Password vault itemAC_TEAM_ID
: "KT7ZWMCJT"CSC_KEY_PASSWORD
: from theArduino Pro IDE Apple Developer ID certificate keychain password
1Password vault itemCSC_LINK
: Path to thePro-IDE-Certificates.p12
file on the Mac MiniIS_RELEASE
: "true"CAN_SIGN
: "true"MACOS_FORCE_NOTARIZE
: "true"
export AC_PASSWORD="***" export AC_USERNAME="***" export AC_TEAM_ID="7KT7ZWMCJT" export CSC_KEY_PASSWORD="***" export CSC_LINK="`pwd`/Pro-IDE-Certificates.p12" export IS_RELEASE="true" export CAN_SIGN="true" export MACOS_FORCE_NOTARIZE="true" export CI="true"
-
-
Build:
./scripts/package.sh
Make sure to change directory, and execute the script from the root of the
arduino-ide
repository. -
Verify:
Since you cannot drag and drop via TeamViewer, you will install the app from a command line. This example puts the IDE2 into the Desktop. Do NOT try to bypass the installation with a double click and open from the UI. The
node_modules
folder of the source code is implicitly in the$PATH
, and you want to verify if the app is fully functional without thenode_modules
folder.VERSION="<TODO: release version>" hdiutil attach ./electron-app/dist/arduino-ide_${VERSION}_macOS_arm64.dmg \ && cp -R /Volumes/Arduino\ IDE\ ${VERSION}-arm64/Arduino\ IDE.app ~/Desktop \ && hdiutil unmount /Volumes/Arduino\ IDE\ ${VERSION}-arm64 \ && codesign -dv --verbose=4 ~/Desktop/Arduino\ IDE.app \ && ~/Desktop/Arduino\ IDE.app/Contents/MacOS/Arduino\ IDE
-
Cleanup:
- You MUST close the shell after the build.
- You MUST delete the
.p12
file and empty the trash afterward.
-
Artifacts:
- You have to upload the following artifacts from
./arduino-ide/electron-app/dist
to S3, but first, you must create the final channel file from thelatest-mac.yaml
:arduino-ide_${VERSION}_macOS_arm64.dmg
,arduino-ide_${VERSION}_macOS_arm64.zip
, andstable-mac.yml
- To create the final channel file, do the followings:
- Copy the
stable-mac.yml
file from the Mac Mini to a folder and rename it tostable-mac-ARM64.yml
. - Download the
stable-mac.yaml
produced by GitHub Actions from the latest release, rename it tostable-mac-X64.yml
, and put it in the same folder where you put the file from the Mac Mini. - Run the channel file merger:
node ./scripts/merge-channel-files.js ./path/to/folder/with/channel/files --no-cleanup
Although, the
--no-cleanup
flag is not mandatory to merge the channel files, it instructs the merger to keep the original channel files. - You have the merged channel file that you need to upload to S3.
- Copy the
- You have to upload the following artifacts from
- Q: I see no
stable
channel files, onlylatest
. - A: You forgot to set the
CI=true
environment variable.
- Q: How to connect to the EC2 instance?
- A: DevOps will give you a temporary link to the private key. Create a file
username_ip.pem
in your cwd, copy the private key into the file, open a shell, and executessh -i "username_ip.pem" username@ip
. DevOps will tell you theusername
and theip
. Do not forget the VPN.
- Q: How to download the files from the EC2 instance?
- A:
scp -i username_ip.pem username@ip:/path/to/build/artifact /local/dir
.