Skip to content

Commit e302354

Browse files
author
mathis
committed
ci: temporary workflow to verify the failing windows ext builds
1 parent ae2e542 commit e302354

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Check Windows ext builds
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths:
7+
- .github/workflows/windows-ext-check.yml
8+
9+
env:
10+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: shivammathur/setup-php@v2
19+
with:
20+
php-version: '8.4'
21+
extensions: curl, openssl, mbstring
22+
ini-values: memory_limit=-1
23+
tools: composer, php-cs-fixer
24+
- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
25+
- run: php-cs-fixer fix --dry-run --diff --ansi
26+
- run: vendor/bin/phpstan analyse
27+
- run: vendor/bin/phpunit tests/ --no-coverage
28+
29+
build:
30+
name: "${{ matrix.extension }} on windows-x86_64"
31+
runs-on: windows-latest
32+
timeout-minutes: 120
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
extension:
37+
- pdo_pgsql,pgsql
38+
- swow
39+
- imagick
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: '8.4'
45+
- run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --no-dev
46+
- name: Build
47+
run: |
48+
./bin/spc doctor --auto-fix
49+
./bin/spc build "${{ matrix.extension }}" --build-cli --build-cgi --build-micro --with-suggests -vvv --dl-with-php=8.5
50+
- name: Upload logs
51+
if: always() && hashFiles('log/**') != ''
52+
uses: actions/upload-artifact@v4
53+
with:
54+
name: logs-${{ matrix.extension }}
55+
path: log

0 commit comments

Comments
 (0)