|
14 | 14 | branches: ${{ steps.set-matrix.outputs.branches }}
|
15 | 15 | matrix-include: ${{ steps.set-matrix.outputs.matrix-include }}
|
16 | 16 | windows-matrix-include: ${{ steps.set-matrix.outputs.windows-matrix-include }}
|
| 17 | + version: ${{ steps.set-matrix.outputs.version }} |
17 | 18 | steps:
|
18 | 19 | - uses: actions/checkout@v4
|
19 | 20 | with:
|
|
32 | 33 | nightly-
|
33 | 34 | - name: Generate Matrix
|
34 | 35 | id: set-matrix
|
35 |
| - run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" |
| 36 | + run: php .github/nightly_matrix.php "${{ github.event_name }}" "${{ github.run_attempt }}" "${{ github.head_ref || github.ref_name }}" |
36 | 37 | - name: Notify Slack
|
37 | 38 | if: failure()
|
38 | 39 | uses: ./.github/actions/notify-slack
|
|
60 | 61 | zts: [true, false]
|
61 | 62 | include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.matrix-include) }}
|
62 | 63 | name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
|
63 |
| - runs-on: ubuntu-${{ ((matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && !matrix.asan) && '22.04' || '20.04' }} |
| 64 | + runs-on: ubuntu-${{ (needs.GENERATE_MATRIX.outputs.version.minor >= 3 && !matrix.asan) && '22.04' || '20.04' }} |
64 | 65 | steps:
|
65 | 66 | - name: git checkout
|
66 | 67 | uses: actions/checkout@v4
|
@@ -147,7 +148,7 @@ jobs:
|
147 | 148 | name: "${{ matrix.branch.name }}_LINUX_X32_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
|
148 | 149 | runs-on: ubuntu-latest
|
149 | 150 | container:
|
150 |
| - image: ubuntu:${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }} |
| 151 | + image: ubuntu:${{ needs.GENERATE_MATRIX.outputs.version.minor >= 3 && '22.04' || '20.04' }} |
151 | 152 | services:
|
152 | 153 | mysql:
|
153 | 154 | image: mysql:8
|
@@ -331,7 +332,7 @@ jobs:
|
331 | 332 | matrix:
|
332 | 333 | branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
|
333 | 334 | name: "${{ matrix.branch.name }}_COMMUNITY"
|
334 |
| - runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }} |
| 335 | + runs-on: ubuntu-${{ needs.GENERATE_MATRIX.outputs.version.minor >= 3 && '22.04' || '20.04' }} |
335 | 336 | env:
|
336 | 337 | UBSAN_OPTIONS: print_stacktrace=1
|
337 | 338 | USE_ZEND_ALLOC: 0
|
@@ -517,7 +518,7 @@ jobs:
|
517 | 518 | matrix:
|
518 | 519 | branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
|
519 | 520 | name: "${{ matrix.branch.name }}_OPCACHE_VARIATION"
|
520 |
| - runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }} |
| 521 | + runs-on: ubuntu-${{ needs.GENERATE_MATRIX.outputs.version.minor >= 3 && '22.04' || '20.04' }} |
521 | 522 | steps:
|
522 | 523 | - name: git checkout
|
523 | 524 | uses: actions/checkout@v4
|
@@ -593,7 +594,7 @@ jobs:
|
593 | 594 | matrix:
|
594 | 595 | branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }}
|
595 | 596 | name: "${{ matrix.branch.name }}_MSAN"
|
596 |
| - runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }} |
| 597 | + runs-on: ubuntu-${{ needs.GENERATE_MATRIX.outputs.version.minor >= 3 && '22.04' || '20.04' }} |
597 | 598 | steps:
|
598 | 599 | - name: git checkout
|
599 | 600 | uses: actions/checkout@v4
|
@@ -693,7 +694,7 @@ jobs:
|
693 | 694 | exclude:
|
694 | 695 | - branch: { name: 'PHP-80', ref: 'PHP-8.0' }
|
695 | 696 | name: "${{ matrix.branch.name }}_LIBMYSQLCLIENT"
|
696 |
| - runs-on: ubuntu-${{ (matrix.branch.ref == 'PHP-8.3' || matrix.branch.ref == 'master') && '22.04' || '20.04' }} |
| 697 | + runs-on: ubuntu-${{ needs.GENERATE_MATRIX.outputs.version.minor >= 3 && '22.04' || '20.04' }} |
697 | 698 | steps:
|
698 | 699 | - name: git checkout
|
699 | 700 | uses: actions/checkout@v4
|
|
0 commit comments