Add support for Ubuntu 24 (#271)

618f138 · Eric Saxby · 2024-05-21 18:20

5 files +25 -0

Files changed

modified .github/workflows/ubuntu.yml
+8 −0
@@ -39,6 +39,14 @@ jobs:
39 39 elixir-version: '1.14.3'
40 40 os: 'ubuntu-latest'
41 41 version-type: 'strict'
42 + - otp-version: '27'
43 + os: 'ubuntu-24.04'
44 + version-type: 'strict'
45 + - otp-version: '26'
46 + os: 'ubuntu-24.04'
47 + version-type: 'strict'
48 + - otp-version: '25'
49 + os: 'ubuntu-24.04'
42 50 - otp-version: '25'
43 51 elixir-version: '1'
44 52 rebar3-version: '3'
modified README.md
+1 −0
@@ -69,6 +69,7 @@ uses that to download assets:
69 69 | ubuntu18 | ubuntu-18.04
70 70 | ubuntu20 | ubuntu-20.04
71 71 | ubuntu22 | ubuntu-22.04
72 +| ubuntu24 | ubuntu-24.04
72 73 | win19 | windows-2019
73 74 | win22 | windows-2022
74 75
modified dist/index.js
+1 −0
@@ -10314,6 +10314,7 @@ function getRunnerOSVersion() {
10314 10314 ubuntu18: 'ubuntu-18.04',
10315 10315 ubuntu20: 'ubuntu-20.04',
10316 10316 ubuntu22: 'ubuntu-22.04',
10317 + ubuntu24: 'ubuntu-24.04',
10317 10318 win19: 'windows-2019',
10318 10319 win22: 'windows-2022',
10319 10320 }
modified src/setup-beam.js
+1 −0
@@ -483,6 +483,7 @@ function getRunnerOSVersion() {
483 483 ubuntu18: 'ubuntu-18.04',
484 484 ubuntu20: 'ubuntu-20.04',
485 485 ubuntu22: 'ubuntu-22.04',
486 + ubuntu24: 'ubuntu-24.04',
486 487 win19: 'windows-2019',
487 488 win22: 'windows-2022',
488 489 }
modified test/setup-beam.test.js
+14 −0
@@ -130,6 +130,20 @@ async function testOTPVersions() {
130 130
131 131 if (process.platform === 'linux') {
132 132 before = simulateInput('version-type', 'strict')
133 + spec = '26'
134 + osVersion = 'ubuntu-24.04'
135 + expected = 'maint-26'
136 + got = await setupBeam.getOTPVersion(spec, osVersion, hexMirrors)
137 + assert.deepStrictEqual(got, expected)
138 +
139 + simulateInput('version-type', before)
140 + spec = '27.0'
141 + osVersion = 'ubuntu-24.04'
142 + expected = 'OTP-27.0'
143 + got = await setupBeam.getOTPVersion(spec, osVersion, hexMirrors)
144 + assert.deepStrictEqual(got, expected)
145 +
146 + simulateInput('version-type', before)
133 147 spec = '25.3.2.1'
134 148 osVersion = 'ubuntu-20.04'
135 149 expected = 'OTP-25.3.2.1'

Parents: 90f5b2c