Skip to content

Commit cdfd995

Browse files
committed
Systematically change all active ubuntu-latest to ubuntu-20.04, except in upstream.yml
1 parent fe06b70 commit cdfd995

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/ci.yml

+11-11
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727
matrix:
28-
runs-on: [ubuntu-latest, windows-2022, macos-latest]
28+
runs-on: [ubuntu-20.04, windows-2022, macos-latest]
2929
python:
3030
- '3.6'
3131
- '3.9'
@@ -42,12 +42,12 @@ jobs:
4242
# We support an optional key: args, for cmake args
4343
include:
4444
# Just add a key
45-
- runs-on: ubuntu-latest
45+
- runs-on: ubuntu-20.04
4646
python: '3.6'
4747
args: >
4848
-DPYBIND11_FINDPYTHON=ON
4949
-DCMAKE_CXX_FLAGS="-D_=1"
50-
- runs-on: ubuntu-latest
50+
- runs-on: ubuntu-20.04
5151
python: 'pypy-3.8'
5252
args: >
5353
-DPYBIND11_FINDPYTHON=ON
@@ -194,7 +194,7 @@ jobs:
194194
python-debug: false
195195

196196
name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
197-
runs-on: ubuntu-latest
197+
runs-on: ubuntu-20.04
198198

199199
steps:
200200
- uses: actions/checkout@v3
@@ -265,7 +265,7 @@ jobs:
265265

266266
# Testing on clang using the excellent silkeh clang docker images
267267
clang:
268-
runs-on: ubuntu-latest
268+
runs-on: ubuntu-20.04
269269
strategy:
270270
fail-fast: false
271271
matrix:
@@ -327,7 +327,7 @@ jobs:
327327

328328
# Testing NVCC; forces sources to behave like .cu files
329329
cuda:
330-
runs-on: ubuntu-latest
330+
runs-on: ubuntu-20.04
331331
name: "🐍 3.10 • CUDA 11.7 • Ubuntu 22.04"
332332
container: nvidia/cuda:11.7.0-devel-ubuntu22.04
333333

@@ -394,7 +394,7 @@ jobs:
394394

395395
# Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
396396
centos-nvhpc7:
397-
runs-on: ubuntu-latest
397+
runs-on: ubuntu-20.04
398398
name: "🐍 3 • CentOS7 / PGI 22.9 • x64"
399399
container: centos:7
400400

@@ -443,7 +443,7 @@ jobs:
443443

444444
# Testing on GCC using the GCC docker images (only recent images supported)
445445
gcc:
446-
runs-on: ubuntu-latest
446+
runs-on: ubuntu-20.04
447447
strategy:
448448
fail-fast: false
449449
matrix:
@@ -593,7 +593,7 @@ jobs:
593593
# Testing on CentOS (manylinux uses a centos base, and this is an easy way
594594
# to get GCC 4.8, which is the manylinux1 compiler).
595595
centos:
596-
runs-on: ubuntu-latest
596+
runs-on: ubuntu-20.04
597597
strategy:
598598
fail-fast: false
599599
matrix:
@@ -650,7 +650,7 @@ jobs:
650650
# This tests an "install" with the CMake tools
651651
install-classic:
652652
name: "🐍 3.7 • Debian • x86 • Install"
653-
runs-on: ubuntu-latest
653+
runs-on: ubuntu-20.04
654654
container: i386/debian:buster
655655

656656
steps:
@@ -694,7 +694,7 @@ jobs:
694694
# basic validation check on the SDist.
695695
doxygen:
696696
name: "Documentation build test"
697-
runs-on: ubuntu-latest
697+
runs-on: ubuntu-20.04
698698

699699
steps:
700700
- uses: actions/checkout@v3

.github/workflows/configure.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
runs-on: [ubuntu-latest, macos-latest, windows-latest]
19+
runs-on: [ubuntu-20.04, macos-latest, windows-latest]
2020
arch: [x64]
2121
cmake: ["3.23"]
2222

2323
include:
24-
- runs-on: ubuntu-latest
24+
- runs-on: ubuntu-20.04
2525
arch: x64
2626
cmake: 3.4
2727

.github/workflows/format.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
jobs:
1919
pre-commit:
2020
name: Format
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-20.04
2222
steps:
2323
- uses: actions/checkout@v3
2424
- uses: actions/setup-python@v4
@@ -35,7 +35,7 @@ jobs:
3535
# When making changes here, please also review the "Clang-Tidy" section
3636
# in .github/CONTRIBUTING.md and update as needed.
3737
name: Clang-Tidy
38-
runs-on: ubuntu-latest
38+
runs-on: ubuntu-20.04
3939
container: silkeh/clang:13
4040
steps:
4141
- uses: actions/checkout@v3

.github/workflows/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
jobs:
77
label:
88
name: Labeler
9-
runs-on: ubuntu-latest
9+
runs-on: ubuntu-20.04
1010
steps:
1111

1212
- uses: actions/labeler@main

.github/workflows/pip.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ jobs:
4242
# This runs the packaging tests and also builds and saves the packages as
4343
# artifacts.
4444
packaging:
45-
name: 🐍 3.8 • 📦 & 📦 tests • ubuntu-latest
46-
runs-on: ubuntu-latest
45+
name: 🐍 3.8 • 📦 & 📦 tests • ubuntu-20.04
46+
runs-on: ubuntu-20.04
4747

4848
steps:
4949
- uses: actions/checkout@v3
@@ -85,7 +85,7 @@ jobs:
8585
# When a GitHub release is made, upload the artifacts to PyPI
8686
upload:
8787
name: Upload to PyPI
88-
runs-on: ubuntu-latest
88+
runs-on: ubuntu-20.04
8989
if: github.event_name == 'release' && github.event.action == 'published'
9090
needs: [packaging]
9191

0 commit comments

Comments
 (0)