|
15 | 15 | matrix-include: ${{ steps.set-matrix.outputs.matrix-include }} |
16 | 16 | windows-matrix-include: ${{ steps.set-matrix.outputs.windows-matrix-include }} |
17 | 17 | macos-matrix-include: ${{ steps.set-matrix.outputs.macos-matrix-include }} |
| 18 | + alpine-matrix-include: ${{ steps.set-matrix.outputs.alpine-matrix-include }} |
18 | 19 | steps: |
19 | 20 | - uses: actions/checkout@v4 |
20 | 21 | with: |
|
39 | 40 | uses: ./.github/actions/notify-slack |
40 | 41 | with: |
41 | 42 | token: ${{ secrets.ACTION_MONITORING_SLACK }} |
| 43 | + ALPINE: |
| 44 | + needs: GENERATE_MATRIX |
| 45 | + if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} |
| 46 | + strategy: |
| 47 | + fail-fast: false |
| 48 | + matrix: |
| 49 | + include: ${{ fromJson(needs.GENERATE_MATRIX.outputs.alpine-matrix-include) }} |
| 50 | + name: "${{ matrix.branch.name }}_ALPINE_X64${{ matrix.name }}_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}" |
| 51 | + runs-on: ubuntu-22.04 |
| 52 | + container: |
| 53 | + image: 'alpine:3.20.1' |
| 54 | + steps: |
| 55 | + - name: git checkout |
| 56 | + uses: actions/checkout@v4 |
| 57 | + with: |
| 58 | + ref: ${{ matrix.branch.ref }} |
| 59 | + - name: apk |
| 60 | + uses: ./.github/actions/apk |
| 61 | + - name: LLVM 17 (ASAN-only) |
| 62 | + if: ${{ matrix.asan }} |
| 63 | + # libclang_rt.asan-x86_64.a is provided by compiler-rt, and only for clang17: |
| 64 | + # https://pkgs.alpinelinux.org/contents?file=libclang_rt.asan-x86_64.a&path=&name=&branch=v3.20 |
| 65 | + run: | |
| 66 | + apk add clang17 compiler-rt |
| 67 | + - name: System info |
| 68 | + run: | |
| 69 | + echo "::group::Show host CPU info" |
| 70 | + lscpu |
| 71 | + echo "::endgroup::" |
| 72 | + echo "::group::Show installed package versions" |
| 73 | + apk list |
| 74 | + echo "::endgroup::" |
| 75 | + - name: ./configure |
| 76 | + uses: ./.github/actions/configure-alpine |
| 77 | + with: |
| 78 | + configurationParameters: >- |
| 79 | + ${{ matrix.configuration_parameters }} |
| 80 | + --${{ matrix.debug && 'enable' || 'disable' }}-debug |
| 81 | + --${{ matrix.zts && 'enable' || 'disable' }}-zts |
| 82 | + skipSlow: ${{ matrix.asan }} |
| 83 | + - name: make |
| 84 | + run: make -j$(/usr/bin/nproc) >/dev/null |
| 85 | + - name: make install |
| 86 | + uses: ./.github/actions/install-alpine |
| 87 | + - name: Test Tracing JIT |
| 88 | + if: matrix.test_jit |
| 89 | + uses: ./.github/actions/test-alpine |
| 90 | + with: |
| 91 | + jitType: tracing |
| 92 | + runTestsParameters: >- |
| 93 | + ${{ matrix.run_tests_parameters }} |
| 94 | + -d zend_extension=opcache.so |
| 95 | + -d opcache.enable_cli=1 |
| 96 | + - name: Notify Slack |
| 97 | + if: failure() |
| 98 | + uses: ./.github/actions/notify-slack |
| 99 | + with: |
| 100 | + token: ${{ secrets.ACTION_MONITORING_SLACK }} |
| 101 | + |
42 | 102 | LINUX_X64: |
43 | 103 | needs: GENERATE_MATRIX |
44 | 104 | if: ${{ needs.GENERATE_MATRIX.outputs.branches != '[]' }} |
|
0 commit comments