Skip to content

Commit d9edda0

Browse files
committed
[skip ci] Keep old branches on Ubuntu 20.04 on nightly
1 parent 0760a57 commit d9edda0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/nightly.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
zts: [true, false]
5555
include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.matrix-include) }}
5656
name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
57-
runs-on: ubuntu-22.04
57+
runs-on: ubuntu-${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
5858
steps:
5959
- name: git checkout
6060
uses: actions/checkout@v3
@@ -129,7 +129,7 @@ jobs:
129129
name: "${{ matrix.branch.name }}_LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
130130
runs-on: ubuntu-latest
131131
container:
132-
image: ubuntu:22.04
132+
image: ubuntu:${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
133133
env:
134134
MYSQL_TEST_HOST: mysql
135135
PDO_MYSQL_TEST_DSN: mysql:host=mysql;dbname=test
@@ -300,7 +300,7 @@ jobs:
300300
matrix:
301301
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
302302
name: "${{ matrix.branch.name }}_COMMUNITY"
303-
runs-on: ubuntu-22.04
303+
runs-on: ubuntu-${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
304304
env:
305305
UBSAN_OPTIONS: print_stacktrace=1
306306
USE_ZEND_ALLOC: 0
@@ -422,7 +422,7 @@ jobs:
422422
matrix:
423423
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
424424
name: "${{ matrix.branch.name }}_OPCACHE_VARIATION"
425-
runs-on: ubuntu-22.04
425+
runs-on: ubuntu-${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
426426
steps:
427427
- name: git checkout
428428
uses: actions/checkout@v3
@@ -493,7 +493,7 @@ jobs:
493493
matrix:
494494
branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
495495
name: "${{ matrix.branch.name }}_MSAN"
496-
runs-on: ubuntu-22.04
496+
runs-on: ubuntu-${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
497497
steps:
498498
- name: git checkout
499499
uses: actions/checkout@v3
@@ -588,7 +588,7 @@ jobs:
588588
exclude:
589589
- branch: { name: 'PHP-80', ref: 'PHP-8.0' }
590590
name: "${{ matrix.branch.name }}_LIBMYSQLCLIENT"
591-
runs-on: ubuntu-22.04
591+
runs-on: ubuntu-${{ matrix.branch.ref == 'master' && '22.04' || '20.04' }}
592592
steps:
593593
- name: git checkout
594594
uses: actions/checkout@v3

0 commit comments

Comments
 (0)