sm.yml 947 B

123456789101112131415161718192021222324252627282930313233
  1. name: sm
  2. on:
  3. push:
  4. branches: [ master ]
  5. pull_request:
  6. branches: [ master ]
  7. jobs:
  8. run:
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. php-versions: [ '5.6','7.0','7.1', '7.2', '7.4', '8.0' ]
  13. name: PHP ${{ matrix.php-versions }}
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v2
  17. - name: Install PHP
  18. uses: shivammathur/setup-php@v2
  19. with:
  20. php-version: ${{ matrix.php-versions }}
  21. coverage: none
  22. ini-values: opcache.jit_buffer_size=256M, opcache.jit=1205, pcre.jit=1, opcache.enable=1, opcache.enable_cli=1
  23. - name: Check PHP Version
  24. run: php -v && php -i | grep opcache
  25. - name: Install Dependencies
  26. run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
  27. - name: Execute tests sm3
  28. run: php tests/sm3.php
  29. - name: Execute tests sm4
  30. run: php tests/sm4.php