Configure tool versions and version-type
mainVersions for tools are controlled via the with: block.
- Strict versions: For best results with Erlang/OTP, specify exact versions and set
version-type: 'strict'. This is required when using a version file. - Loose versions (Default): Uses semantic versioning rules for ranges like
22.xor>22. This is the default behavior. - Pre-release versions: To use a version like
v1.11.0-rc.0, you must specify the exact version and setversion-type: 'strict'. Pre-releases are opt-in. - Latest versions: Set the version to
latestto get the most recent available version (including pre-releases). To target only the latest stable release, use a range like> 0.
Important: Always specify versions as YAML strings (e.g., '23.0' instead of 23.0) to prevent YAML parsers from treating them as numbers, which can lead to incorrect version resolution.
- uses: erlef/setup-beam@v1
with:
otp-version: '26.0'
version-type: 'strict'