allocate aligned size #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: true | |
matrix: | |
include: | |
- name: PHP8.1 | |
os: ubuntu-latest | |
php: '8.1' | |
- name: PHP8.2 | |
os: ubuntu-latest | |
php: '8.2' | |
- name: PHP8.3 | |
os: ubuntu-latest | |
php: '8.3' | |
- name: Windows | |
os: windows-latest | |
php: '8.3' | |
- name: macOS | |
os: macos-latest | |
php: '8.3' | |
- name: macOS-x86_64 | |
os: macos-13 | |
php: '8.3' | |
steps: | |
- name: Setup PHP ${{ matrix.php }} | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
# PHP Extras | |
coverage: none | |
tools: composer, phpunit:10.5, phpstan | |
#ini-values: "memory_limit=512M" | |
extensions: ffi | |
- name: Checkout codes | |
uses: "actions/checkout@v4" | |
#- name: Composer | |
# uses: php-actions/composer@v6 | |
# with: | |
# php_version: ${{ matrix.php }} | |
# php_extensions: ffi | |
- name: Composer | |
run: composer update | |
#- name: PHP Static Analysys | |
# uses: php-actions/phpstan@v3 | |
# with: | |
# php_version: ${{ matrix.php }} | |
# path: src/ | |
- name: PHP Static Analysys | |
run: phpstan | |
#- name: PHPUnit Tests | |
# uses: php-actions/phpunit@v3 | |
# with: | |
# configuration: tests/phpunit.xml | |
# version: 10.5 | |
# php_version: ${{ matrix.php }} | |
# php_extensions: ffi | |
- name: PHPUnit Tests | |
run: phpunit -c tests |