mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 15:16:08 +00:00
Add support for Ubuntu 24 (#271)
This commit is contained in:
@@ -39,6 +39,14 @@ jobs:
|
|||||||
elixir-version: '1.14.3'
|
elixir-version: '1.14.3'
|
||||||
os: 'ubuntu-latest'
|
os: 'ubuntu-latest'
|
||||||
version-type: 'strict'
|
version-type: 'strict'
|
||||||
|
- otp-version: '27'
|
||||||
|
os: 'ubuntu-24.04'
|
||||||
|
version-type: 'strict'
|
||||||
|
- otp-version: '26'
|
||||||
|
os: 'ubuntu-24.04'
|
||||||
|
version-type: 'strict'
|
||||||
|
- otp-version: '25'
|
||||||
|
os: 'ubuntu-24.04'
|
||||||
- otp-version: '25'
|
- otp-version: '25'
|
||||||
elixir-version: '1'
|
elixir-version: '1'
|
||||||
rebar3-version: '3'
|
rebar3-version: '3'
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ uses that to download assets:
|
|||||||
| ubuntu18 | ubuntu-18.04
|
| ubuntu18 | ubuntu-18.04
|
||||||
| ubuntu20 | ubuntu-20.04
|
| ubuntu20 | ubuntu-20.04
|
||||||
| ubuntu22 | ubuntu-22.04
|
| ubuntu22 | ubuntu-22.04
|
||||||
|
| ubuntu24 | ubuntu-24.04
|
||||||
| win19 | windows-2019
|
| win19 | windows-2019
|
||||||
| win22 | windows-2022
|
| win22 | windows-2022
|
||||||
|
|
||||||
|
|||||||
Vendored
+1
@@ -10314,6 +10314,7 @@ function getRunnerOSVersion() {
|
|||||||
ubuntu18: 'ubuntu-18.04',
|
ubuntu18: 'ubuntu-18.04',
|
||||||
ubuntu20: 'ubuntu-20.04',
|
ubuntu20: 'ubuntu-20.04',
|
||||||
ubuntu22: 'ubuntu-22.04',
|
ubuntu22: 'ubuntu-22.04',
|
||||||
|
ubuntu24: 'ubuntu-24.04',
|
||||||
win19: 'windows-2019',
|
win19: 'windows-2019',
|
||||||
win22: 'windows-2022',
|
win22: 'windows-2022',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -483,6 +483,7 @@ function getRunnerOSVersion() {
|
|||||||
ubuntu18: 'ubuntu-18.04',
|
ubuntu18: 'ubuntu-18.04',
|
||||||
ubuntu20: 'ubuntu-20.04',
|
ubuntu20: 'ubuntu-20.04',
|
||||||
ubuntu22: 'ubuntu-22.04',
|
ubuntu22: 'ubuntu-22.04',
|
||||||
|
ubuntu24: 'ubuntu-24.04',
|
||||||
win19: 'windows-2019',
|
win19: 'windows-2019',
|
||||||
win22: 'windows-2022',
|
win22: 'windows-2022',
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,6 +130,20 @@ async function testOTPVersions() {
|
|||||||
|
|
||||||
if (process.platform === 'linux') {
|
if (process.platform === 'linux') {
|
||||||
before = simulateInput('version-type', 'strict')
|
before = simulateInput('version-type', 'strict')
|
||||||
|
spec = '26'
|
||||||
|
osVersion = 'ubuntu-24.04'
|
||||||
|
expected = 'maint-26'
|
||||||
|
got = await setupBeam.getOTPVersion(spec, osVersion, hexMirrors)
|
||||||
|
assert.deepStrictEqual(got, expected)
|
||||||
|
|
||||||
|
simulateInput('version-type', before)
|
||||||
|
spec = '27.0'
|
||||||
|
osVersion = 'ubuntu-24.04'
|
||||||
|
expected = 'OTP-27.0'
|
||||||
|
got = await setupBeam.getOTPVersion(spec, osVersion, hexMirrors)
|
||||||
|
assert.deepStrictEqual(got, expected)
|
||||||
|
|
||||||
|
simulateInput('version-type', before)
|
||||||
spec = '25.3.2.1'
|
spec = '25.3.2.1'
|
||||||
osVersion = 'ubuntu-20.04'
|
osVersion = 'ubuntu-20.04'
|
||||||
expected = 'OTP-25.3.2.1'
|
expected = 'OTP-25.3.2.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user