|
| 1 | +name: Nightly |
| 2 | +on: |
| 3 | + # FIXME: Change to run on a schedule before merging |
| 4 | + #schedule: |
| 5 | + # - cron: "0 1 * * *" |
| 6 | + pull_request: |
| 7 | + branches: |
| 8 | + - '**' |
| 9 | +jobs: |
| 10 | + GENERATE_MATRIX: |
| 11 | + name: Generate Matrix |
| 12 | + runs-on: ubuntu-latest |
| 13 | + outputs: |
| 14 | + branches: ${{ steps.set-matrix.outputs.branches }} |
| 15 | + asan-matrix: ${{ steps.set-matrix.outputs.asan-matrix }} |
| 16 | + steps: |
| 17 | + - uses: actions/checkout@v2 |
| 18 | + with: |
| 19 | + fetch-depth: 0 |
| 20 | + - name: Get current date for cache |
| 21 | + id: date |
| 22 | + run: echo "::set-output name=date::$(date -Iseconds)" |
| 23 | + - name: Grab the commit mapping |
| 24 | + uses: actions/cache@v3 |
| 25 | + with: |
| 26 | + path: branch-commit-cache.json |
| 27 | + key: nightly-${{ steps.date.outputs.date }} |
| 28 | + restore-keys: | |
| 29 | + nightly- |
| 30 | + - name: Generate Matrix |
| 31 | + id: set-matrix |
| 32 | + run: php .github/nightly_matrix.php |
| 33 | + LINUX_X64: |
| 34 | + needs: GENERATE_MATRIX |
| 35 | + strategy: |
| 36 | + fail-fast: false |
| 37 | + matrix: |
| 38 | + branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }} |
| 39 | + debug: [true, false] |
| 40 | + zts: [true, false] |
| 41 | + include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.asan-matrix) }} |
| 42 | + name: "${{ matrix.branch.name }}_LINUX_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" |
| 43 | + runs-on: ubuntu-20.04 |
| 44 | + steps: |
| 45 | + - name: git checkout |
| 46 | + uses: actions/checkout@v2 |
| 47 | + with: |
| 48 | + ref: ${{ matrix.branch.ref }} |
| 49 | + - name: Create mssql container |
| 50 | + uses: ./.github/actions/mssql |
| 51 | + - name: apt |
| 52 | + uses: ./.github/actions/apt-x64 |
| 53 | + - name: ./configure |
| 54 | + uses: ./.github/actions/configure-x64 |
| 55 | + with: |
| 56 | + configurationParameters: >- |
| 57 | + ${{ matrix.configuration_parameters }} |
| 58 | + --${{ matrix.debug && 'enable' || 'disable' }}-debug |
| 59 | + --${{ matrix.zts && 'enable' || 'disable' }}-zts |
| 60 | + - name: make |
| 61 | + run: make -j$(/usr/bin/nproc) >/dev/null |
| 62 | + - name: make install |
| 63 | + uses: ./.github/actions/install-linux |
| 64 | + - name: Setup |
| 65 | + uses: ./.github/actions/setup-x64 |
| 66 | + - name: Test |
| 67 | + uses: ./.github/actions/test-linux |
| 68 | + with: |
| 69 | + runTestsParameters: >- |
| 70 | + ${{ matrix.run_tests_parameters }} |
| 71 | + - name: Test Tracing JIT |
| 72 | + uses: ./.github/actions/test-linux |
| 73 | + with: |
| 74 | + runTestsParameters: >- |
| 75 | + ${{ matrix.run_tests_parameters }} |
| 76 | + -d zend_extension=opcache.so |
| 77 | + -d opcache.jit_buffer_size=16M |
| 78 | + - name: Test OpCache |
| 79 | + uses: ./.github/actions/test-linux |
| 80 | + with: |
| 81 | + runTestsParameters: >- |
| 82 | + ${{ matrix.run_tests_parameters }} |
| 83 | + -d zend_extension=opcache.so |
| 84 | + - name: Test Function JIT |
| 85 | + uses: ./.github/actions/test-linux |
| 86 | + with: |
| 87 | + runTestsParameters: >- |
| 88 | + ${{ matrix.run_tests_parameters }} |
| 89 | + -d zend_extension=opcache.so |
| 90 | + -d opcache.jit_buffer_size=16M |
| 91 | + -d opcache.jit=1205 |
| 92 | + MACOS: |
| 93 | + needs: GENERATE_MATRIX |
| 94 | + strategy: |
| 95 | + fail-fast: false |
| 96 | + matrix: |
| 97 | + branch: ${{ fromJson(needs.GENERATE_MATRIX.outputs.branches) }} |
| 98 | + debug: [true, false] |
| 99 | + zts: [true, false] |
| 100 | + name: "${{ matrix.branch.name }}_MACOS_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" |
| 101 | + runs-on: macos-10.15 |
| 102 | + steps: |
| 103 | + - name: git checkout |
| 104 | + uses: actions/checkout@v2 |
| 105 | + with: |
| 106 | + ref: ${{ matrix.branch.ref }} |
| 107 | + - name: brew |
| 108 | + uses: ./.github/actions/brew |
| 109 | + - name: ./configure |
| 110 | + uses: ./.github/actions/configure-macos |
| 111 | + with: |
| 112 | + configurationParameters: >- |
| 113 | + --${{ matrix.debug && 'enable' || 'disable' }}-debug |
| 114 | + --${{ matrix.zts && 'enable' || 'disable' }}-zts |
| 115 | + - name: make |
| 116 | + run: |- |
| 117 | + export PATH="/usr/local/opt/bison/bin:$PATH" |
| 118 | + make -j$(sysctl -n hw.logicalcpu) >/dev/null |
| 119 | + - name: make install |
| 120 | + run: sudo make install |
| 121 | + - name: Test |
| 122 | + uses: ./.github/actions/test-macos |
| 123 | + - name: Test Tracing JIT |
| 124 | + uses: ./.github/actions/test-macos |
| 125 | + with: |
| 126 | + runTestsParameters: >- |
| 127 | + -d zend_extension=opcache.so |
| 128 | + -d opcache.protect_memory=1 |
| 129 | + -d opcache.jit_buffer_size=16M |
| 130 | + - name: Test OpCache |
| 131 | + uses: ./.github/actions/test-macos |
| 132 | + with: |
| 133 | + runTestsParameters: >- |
| 134 | + -d zend_extension=opcache.so |
| 135 | + -d opcache.protect_memory=1 |
| 136 | + - name: Test Function JIT |
| 137 | + uses: ./.github/actions/test-macos |
| 138 | + with: |
| 139 | + runTestsParameters: >- |
| 140 | + -d zend_extension=opcache.so |
| 141 | + -d opcache.protect_memory=1 |
| 142 | + -d opcache.jit_buffer_size=16M |
| 143 | + -d opcache.jit=1205 |
0 commit comments