Skip to content

Commit 63c9080

Browse files
committed
[WIP] Upgrade Ubuntu from 24.04 to 26.06 in GitHub Actions
Touch Python/getcompiler.c to trigger most GHA jobs.
1 parent f1c5363 commit 63c9080

8 files changed

Lines changed: 22 additions & 21 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
name: 'Check if Autoconf files are up to date'
5454
# Don't use ubuntu-latest but a specific version to make the job
5555
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
56-
runs-on: ubuntu-24.04
56+
runs-on: ubuntu-26.04
5757
container:
5858
image: ghcr.io/python/autoconf:2025.01.02.12581854023
5959
timeout-minutes: 60
@@ -96,7 +96,7 @@ jobs:
9696
name: 'Check if generated files are up to date'
9797
# Don't use ubuntu-latest but a specific version to make the job
9898
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
99-
runs-on: ubuntu-24.04
99+
runs-on: ubuntu-26.04
100100
timeout-minutes: 60
101101
needs: build-context
102102
if: needs.build-context.outputs.run-tests == 'true'
@@ -239,18 +239,18 @@ jobs:
239239
- false
240240
- true
241241
os:
242-
- ubuntu-24.04
243-
- ubuntu-24.04-arm
242+
- ubuntu-26.04
243+
- ubuntu-26.04-arm
244244
exclude:
245245
# Do not test BOLT with free-threading, to conserve resources
246246
- bolt: true
247247
free-threading: true
248248
# BOLT currently crashes during instrumentation on aarch64
249-
- os: ubuntu-24.04-arm
249+
- os: ubuntu-26.04-arm
250250
bolt: true
251251
include:
252252
# Enable CPU-intensive tests on ARM (default build only)
253-
- os: ubuntu-24.04-arm
253+
- os: ubuntu-26.04-arm
254254
bolt: false
255255
free-threading: false
256256
test-opts: '-u cpu'
@@ -270,7 +270,7 @@ jobs:
270270
strategy:
271271
fail-fast: false
272272
matrix:
273-
os: [ubuntu-24.04]
273+
os: [ubuntu-26.04]
274274
ssllib:
275275
# See Tools/ssl/make_ssl_data.py for notes on adding a new version
276276
## OpenSSL
@@ -346,7 +346,7 @@ jobs:
346346
- arch: aarch64
347347
runs-on: macos-26
348348
- arch: x86_64
349-
runs-on: ubuntu-24.04
349+
runs-on: ubuntu-26.04
350350

351351
runs-on: ${{ matrix.runs-on }}
352352
steps:
@@ -393,7 +393,7 @@ jobs:
393393

394394
test-hypothesis:
395395
name: "Hypothesis tests on Ubuntu"
396-
runs-on: ubuntu-24.04
396+
runs-on: ubuntu-26.04
397397
timeout-minutes: 60
398398
needs: build-context
399399
if: needs.build-context.outputs.run-ubuntu == 'true'
@@ -504,7 +504,7 @@ jobs:
504504
strategy:
505505
fail-fast: false
506506
matrix:
507-
os: [ubuntu-24.04]
507+
os: [ubuntu-26.04]
508508
env:
509509
OPENSSL_VER: 3.5.7
510510
PYTHONSTRICTEXTENSIONBUILD: 1

.github/workflows/jit.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
jobs:
3030
interpreter:
3131
name: Interpreter (Debug)
32-
runs-on: ubuntu-24.04
32+
runs-on: ubuntu-26.04
3333
timeout-minutes: 60
3434
steps:
3535
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -145,9 +145,9 @@ jobs:
145145
- false
146146
include:
147147
- target: x86_64-unknown-linux-gnu/gcc
148-
runner: ubuntu-24.04
148+
runner: ubuntu-26.04
149149
- target: aarch64-unknown-linux-gnu/gcc
150-
runner: ubuntu-24.04-arm
150+
runner: ubuntu-26.04-arm
151151
steps:
152152
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
153153
with:
@@ -171,7 +171,7 @@ jobs:
171171
linux-extras:
172172
name: ${{ matrix.name }}
173173

174-
runs-on: ubuntu-24.04
174+
runs-on: ubuntu-26.04
175175
timeout-minutes: 60
176176
strategy:
177177
fail-fast: false

.github/workflows/reusable-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
# Run "doctest" on HEAD as new syntax doesn't exist in the latest stable release
9696
doctest:
9797
name: 'Doctest'
98-
runs-on: ubuntu-24.04
98+
runs-on: ubuntu-26.04
9999
timeout-minutes: 60
100100
steps:
101101
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/reusable-emscripten.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build-emscripten-reusable:
1414
name: 'build and test'
15-
runs-on: ubuntu-24.04
15+
runs-on: ubuntu-26.04
1616
timeout-minutes: 40
1717
steps:
1818
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/reusable-san.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
&& ' (free-threading)'
2727
|| ''
2828
}}
29-
runs-on: ubuntu-24.04
29+
runs-on: ubuntu-26.04
3030
timeout-minutes: 60
3131
steps:
3232
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

.github/workflows/reusable-wasi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212
jobs:
1313
build-wasi-reusable:
1414
name: 'build and test'
15-
runs-on: ubuntu-24.04-arm
15+
runs-on: ubuntu-26.04-arm
1616
timeout-minutes: 60
1717
env:
1818
WASMTIME_VERSION: 38.0.3

.github/workflows/tail-call.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ jobs:
6666
matrix:
6767
include:
6868
- target: x86_64-unknown-linux-gnu/gcc
69-
runner: ubuntu-24.04
69+
runner: ubuntu-26.04
7070
configure_flags: --with-pydebug
7171
- target: x86_64-unknown-linux-gnu/gcc-free-threading
72-
runner: ubuntu-24.04
72+
runner: ubuntu-26.04
7373
configure_flags: --disable-gil
7474
- target: aarch64-unknown-linux-gnu/gcc
75-
runner: ubuntu-24.04-arm
75+
runner: ubuntu-26.04-arm
7676
configure_flags: --with-pydebug
7777
steps:
7878
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

Python/getcompiler.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#endif /* !COMPILER */
2626

27+
2728
const char *
2829
Py_GetCompiler(void)
2930
{

0 commit comments

Comments
 (0)