ci: Make runs-on overridable

Previously what runners CI ran on was hardcoded. Unfortunately that
makes it harder to use faster or self hosted runners (e.g. in a private
repository where the runners are very slow, or self hosted runners for
cfbot).

Fix that by allowing to override the runner types via
repository/organization variables. How to do that is documented in
src/tools/ci/README.

Testing faster github hosted runners showed that we have some
dependencies on specific locations, fix most of those.

As part of this the "Determine enabled jobs" job moves to ubuntu-slim,
which the setup job already did. Normally this won't make a difference,
but seems more consistent.

This commit is backpatched to 19 to keep CI between master and 19 the
same. Soon we'll backpatch CI support to regain coverage with lost with
cirrus-ci's shutdown.

Author: Andres Freund <[email protected]>
Co-authored-by: Nazir Bilal Yavuz <[email protected]>
Discussion: 
https://postgr.es/m/a2ejn7lfqolutzz7kozalbhy3bixdrujb4buc3pgbtlk4am2ba@wbv6v7riia33
Discussion: 
https://postgr.es/m/can55fz1bcwbswgcck2gqkyn6tzdxcw2hvk2m3qeiwanxunj...@mail.gmail.com
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d073ddd5180db327788e373f5a9cf660d830fddf

Modified Files
--------------
.github/workflows/pg-ci.yml | 72 ++++++++++++++++++++++++++++-----------------
src/tools/ci/README         | 21 +++++++++++++
2 files changed, 66 insertions(+), 27 deletions(-)

Reply via email to