Switch CI to Ubuntu 20.04

Switch CI tasks currently running on Ubuntu 18.04 to 20.04 and
also switch some tasks that dont require specific version because
they run in docker containers to use ubuntu-latest instead.
All tasks switched to ubuntu-latest are expected to be ubuntu-version
agnostic because they run their actions in docker containers.
This commit is contained in:
Sven Klemm 2021-03-15 15:03:07 +01:00 committed by Sven Klemm
parent f18d9bf38b
commit c5c24616f8
8 changed files with 11 additions and 19 deletions

View File

@ -10,7 +10,7 @@ on:
jobs:
regress_linux_32bit:
name: PG${{ matrix.pg }} ${{ matrix.build_type }} linux-i386
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
container:
image: i386/postgres:${{ matrix.pg }}-alpine
env:

View File

@ -11,7 +11,7 @@ on:
jobs:
apt_tests:
name: APT ${{ matrix.image }} PG${{ matrix.pg }}
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
env:

View File

@ -12,7 +12,7 @@ on:
jobs:
misc_checks:
name: Check formatting, license and git hooks
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:

View File

@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
pg: ["12.6", "13.2"]
os: [ubuntu-18.04]
os: [ubuntu-20.04]
env:
PG_SRC_DIR: pgbuild
PG_INSTALL_DIR: postgresql

View File

@ -9,7 +9,7 @@ on:
jobs:
abi_breakage:
name: ABI Breakage PG${{ matrix.pg }}
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
@ -35,7 +35,7 @@ jobs:
sanitizer:
name: ASAN and UBSAN
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -49,7 +49,7 @@ jobs:
memory_leak:
name: Memory leak on insert
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
@ -65,21 +65,13 @@ jobs:
backup_and_restore:
name: Backup and restore
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pg: [11, 12, 13]
include:
- pg: 11
pg_minor_compile: 0
- pg: 12
pg_minor_compile: 0
- pg: 13
pg_minor_compile: 2
env:
PG_MAJOR: ${{ matrix.pg }}
PG_MINOR_COMPILE: ${{ matrix.pg_minor_compile }}
PG_VERSION: ${{ matrix.pg }}
steps:

View File

@ -11,7 +11,7 @@ on:
jobs:
rpm_tests:
name: RPM ${{ matrix.image }} PG${{ matrix.pg }}
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
strategy:

View File

@ -10,7 +10,7 @@ on:
jobs:
update_test:
name: Update test PG${{ matrix.pg }}
runs-on: 'ubuntu-18.04'
runs-on: 'ubuntu-latest'
strategy:
matrix:
pg: ["11.11","12.6","13.2"]

View File

@ -51,7 +51,7 @@ def build_debug_config(overrides):
"coverage": True,
"llvm_config": "llvm-config-9",
"clang": "clang-9",
"os": "ubuntu-18.04",
"os": "ubuntu-20.04",
"cc": "gcc",
"cxx": "g++",
})