Systematically change all active ubuntu-latest to ubuntu-20.04, except in upstream.yml

This commit is contained in:
Ralf W. Grosse-Kunstleve 2022-12-04 13:03:07 -08:00
parent fe06b70312
commit cdfd99526a
5 changed files with 19 additions and 19 deletions

View File

@ -25,7 +25,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
runs-on: [ubuntu-latest, windows-2022, macos-latest] runs-on: [ubuntu-20.04, windows-2022, macos-latest]
python: python:
- '3.6' - '3.6'
- '3.9' - '3.9'
@ -42,12 +42,12 @@ jobs:
# We support an optional key: args, for cmake args # We support an optional key: args, for cmake args
include: include:
# Just add a key # Just add a key
- runs-on: ubuntu-latest - runs-on: ubuntu-20.04
python: '3.6' python: '3.6'
args: > args: >
-DPYBIND11_FINDPYTHON=ON -DPYBIND11_FINDPYTHON=ON
-DCMAKE_CXX_FLAGS="-D_=1" -DCMAKE_CXX_FLAGS="-D_=1"
- runs-on: ubuntu-latest - runs-on: ubuntu-20.04
python: 'pypy-3.8' python: 'pypy-3.8'
args: > args: >
-DPYBIND11_FINDPYTHON=ON -DPYBIND11_FINDPYTHON=ON
@ -194,7 +194,7 @@ jobs:
python-debug: false python-debug: false
name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64" name: "🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -265,7 +265,7 @@ jobs:
# Testing on clang using the excellent silkeh clang docker images # Testing on clang using the excellent silkeh clang docker images
clang: clang:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -327,7 +327,7 @@ jobs:
# Testing NVCC; forces sources to behave like .cu files # Testing NVCC; forces sources to behave like .cu files
cuda: cuda:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: "🐍 3.10 • CUDA 11.7 • Ubuntu 22.04" name: "🐍 3.10 • CUDA 11.7 • Ubuntu 22.04"
container: nvidia/cuda:11.7.0-devel-ubuntu22.04 container: nvidia/cuda:11.7.0-devel-ubuntu22.04
@ -394,7 +394,7 @@ jobs:
# Testing on CentOS 7 + PGI compilers, which seems to require more workarounds # Testing on CentOS 7 + PGI compilers, which seems to require more workarounds
centos-nvhpc7: centos-nvhpc7:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
name: "🐍 3 • CentOS7 / PGI 22.9 • x64" name: "🐍 3 • CentOS7 / PGI 22.9 • x64"
container: centos:7 container: centos:7
@ -443,7 +443,7 @@ jobs:
# Testing on GCC using the GCC docker images (only recent images supported) # Testing on GCC using the GCC docker images (only recent images supported)
gcc: gcc:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -593,7 +593,7 @@ jobs:
# Testing on CentOS (manylinux uses a centos base, and this is an easy way # Testing on CentOS (manylinux uses a centos base, and this is an easy way
# to get GCC 4.8, which is the manylinux1 compiler). # to get GCC 4.8, which is the manylinux1 compiler).
centos: centos:
runs-on: ubuntu-latest runs-on: ubuntu-20.04
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -650,7 +650,7 @@ jobs:
# This tests an "install" with the CMake tools # This tests an "install" with the CMake tools
install-classic: install-classic:
name: "🐍 3.7 • Debian • x86 • Install" name: "🐍 3.7 • Debian • x86 • Install"
runs-on: ubuntu-latest runs-on: ubuntu-20.04
container: i386/debian:buster container: i386/debian:buster
steps: steps:
@ -694,7 +694,7 @@ jobs:
# basic validation check on the SDist. # basic validation check on the SDist.
doxygen: doxygen:
name: "Documentation build test" name: "Documentation build test"
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -16,12 +16,12 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
runs-on: [ubuntu-latest, macos-latest, windows-latest] runs-on: [ubuntu-20.04, macos-latest, windows-latest]
arch: [x64] arch: [x64]
cmake: ["3.23"] cmake: ["3.23"]
include: include:
- runs-on: ubuntu-latest - runs-on: ubuntu-20.04
arch: x64 arch: x64
cmake: 3.4 cmake: 3.4

View File

@ -18,7 +18,7 @@ env:
jobs: jobs:
pre-commit: pre-commit:
name: Format name: Format
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-python@v4 - uses: actions/setup-python@v4
@ -35,7 +35,7 @@ jobs:
# When making changes here, please also review the "Clang-Tidy" section # When making changes here, please also review the "Clang-Tidy" section
# in .github/CONTRIBUTING.md and update as needed. # in .github/CONTRIBUTING.md and update as needed.
name: Clang-Tidy name: Clang-Tidy
runs-on: ubuntu-latest runs-on: ubuntu-20.04
container: silkeh/clang:13 container: silkeh/clang:13
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
label: label:
name: Labeler name: Labeler
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/labeler@main - uses: actions/labeler@main

View File

@ -42,8 +42,8 @@ jobs:
# This runs the packaging tests and also builds and saves the packages as # This runs the packaging tests and also builds and saves the packages as
# artifacts. # artifacts.
packaging: packaging:
name: 🐍 3.8 • 📦 & 📦 tests • ubuntu-latest name: 🐍 3.8 • 📦 & 📦 tests • ubuntu-20.04
runs-on: ubuntu-latest runs-on: ubuntu-20.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -85,7 +85,7 @@ jobs:
# When a GitHub release is made, upload the artifacts to PyPI # When a GitHub release is made, upload the artifacts to PyPI
upload: upload:
name: Upload to PyPI name: Upload to PyPI
runs-on: ubuntu-latest runs-on: ubuntu-20.04
if: github.event_name == 'release' && github.event.action == 'published' if: github.event_name == 'release' && github.event.action == 'published'
needs: [packaging] needs: [packaging]