push.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. name: Push
  2. on:
  3. push:
  4. paths-ignore:
  5. - docs/*
  6. - NEWS
  7. - UPGRADING
  8. - UPGRADING.INTERNALS
  9. - README.md
  10. - CONTRIBUTING.md
  11. - CODING_STANDARDS.md
  12. branches:
  13. - PHP-7.4
  14. - PHP-8.0
  15. - PHP-8.1
  16. - master
  17. pull_request:
  18. branches:
  19. - '**'
  20. jobs:
  21. LINUX_X64:
  22. strategy:
  23. fail-fast: false
  24. matrix:
  25. include:
  26. - debug: true
  27. zts: false
  28. - debug: false
  29. zts: true
  30. name: "LINUX_X64_${{ matrix.debug && 'DEBUG' || 'RELEASE' }}_${{ matrix.zts && 'ZTS' || 'NTS' }}"
  31. runs-on: ubuntu-20.04
  32. steps:
  33. - name: git checkout
  34. uses: actions/checkout@v2
  35. - name: Create MSSQL container
  36. uses: ./.github/actions/setup-mssql
  37. - name: Create Oracle container
  38. uses: ./.github/actions/setup-oracle
  39. - name: apt
  40. uses: ./.github/actions/apt-x64
  41. - name: ./configure
  42. uses: ./.github/actions/configure-x64
  43. with:
  44. configurationParameters: >-
  45. --${{ matrix.debug && 'enable' || 'disable' }}-debug
  46. --${{ matrix.zts && 'enable' || 'disable' }}-zts
  47. - name: make
  48. run: make -j$(/usr/bin/nproc) >/dev/null
  49. - name: make install
  50. uses: ./.github/actions/install-linux
  51. - name: Setup
  52. uses: ./.github/actions/setup-x64
  53. - name: Test
  54. uses: ./.github/actions/test-linux
  55. - name: Test Tracing JIT
  56. uses: ./.github/actions/test-linux
  57. with:
  58. runTestsParameters: >-
  59. -d zend_extension=opcache.so
  60. -d opcache.enable_cli=1
  61. -d opcache.jit_buffer_size=16M
  62. - name: Verify generated files are up to date
  63. uses: ./.github/actions/verify-generated-files
  64. MACOS_DEBUG_NTS:
  65. runs-on: macos-11
  66. steps:
  67. - name: git checkout
  68. uses: actions/checkout@v2
  69. - name: brew
  70. uses: ./.github/actions/brew
  71. - name: ./configure
  72. uses: ./.github/actions/configure-macos
  73. with:
  74. configurationParameters: --enable-debug --disable-zts
  75. - name: make
  76. run: |-
  77. export PATH="/usr/local/opt/bison/bin:$PATH"
  78. make -j$(sysctl -n hw.logicalcpu) >/dev/null
  79. - name: make install
  80. run: sudo make install
  81. - name: Test
  82. uses: ./.github/actions/test-macos
  83. - name: Test Tracing JIT
  84. uses: ./.github/actions/test-macos
  85. with:
  86. runTestsParameters: >-
  87. -d zend_extension=opcache.so
  88. -d opcache.enable_cli=1
  89. -d opcache.protect_memory=1
  90. -d opcache.jit_buffer_size=16M
  91. - name: Verify generated files are up to date
  92. uses: ./.github/actions/verify-generated-files