diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d24df04..c265ad3 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,18 @@ jobs: strategy: fail-fast: false matrix: + os: [ windows-2019, windows-2022 ] php: ["7.3", "7.4", "8.0", "8.1", "8.2", "8.3"] arch: [x86, x64] ts: [nts, ts] experimental: [false] + exclude: + - { os: windows-2019, php: "8.3" } + - { 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,11 +44,12 @@ jobs: echo $extension_version >> $env:GITHUB_ENV - name: Setup PHP id: setup-php - uses: php/setup-php-sdk@v0.8 + uses: php/setup-php-sdk@v0.10 with: version: ${{matrix.php}} arch: ${{matrix.arch}} ts: ${{matrix.ts}} + cache: true - name: Enable Developer Command Prompt uses: ilammy/msvc-dev-cmd@v1 with: diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..d7952f1 --- /dev/null +++ b/composer.json @@ -0,0 +1,18 @@ +{ + "name": "pecl/timezonedb", + "type": "php-ext", + "license": "PHP-3.01", + "description": "Timezone Database to be used with PHP's date and time functions", + "require": { + "php": ">= 5.4.0" + }, + "php-ext": { + "extension-name": "timezonedb", + "configure-options": [ + { + "name": "enable-timezonedb", + "description": "Enable timezonedb support" + } + ] + } +}