diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f33c232..d0d470c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ on: jobs: windows: - runs-on: windows-latest + runs-on: ${{matrix.os}} name: "Windows: Build and test" defaults: run: @@ -18,10 +18,17 @@ jobs: strategy: fail-fast: false matrix: + os: [ windows-2019, windows-2022 ] php: ["7.3", "7.4", "8.0", "8.1", "8.2"] arch: [x86, x64] ts: [nts, ts] experimental: [false] + exclude: + - { os: windows-2019, php: "8.2" } + - { os: windows-2019, php: "8.1" } + - { os: windows-2019, php: "8.0" } + - { os: windows-2022, php: "7.4" } + - { os: windows-2022, php: "7.3" } steps: - name: Checkout Repository uses: actions/checkout@v3 @@ -36,7 +43,7 @@ jobs: echo $extension_version >> $env:GITHUB_ENV - name: Setup PHP id: setup-php - uses: cmb69/setup-php-sdk@v0.7 + uses: php/setup-php-sdk@v0.10 with: version: ${{matrix.php}} arch: ${{matrix.arch}} diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..10e51ee --- /dev/null +++ b/composer.json @@ -0,0 +1,19 @@ +{ + "name": "pecl/mcrypt", + "type": "php-ext", + "license": "PHP-3.01", + "description": "Interface to the mcrypt library", + "require": { + "php": ">= 7.2.0, <= 8.4.0" + }, + "php-ext": { + "extension-name": "mcrypt", + "configure-options": [ + { + "name": "with-mcrypt", + "description": "Include mcrypt support", + "needs-value": true + } + ] + } +}