Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
build:
name: PHP ${{ matrix.php }} ${{ matrix.ts }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-15]
php: ['8.4', '8.5']
ts: [nts, zts]

steps:
- uses: actions/checkout@v4

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: none
env:
phpts: ${{ matrix.ts == 'zts' && 'ts' || 'nts' }}

- name: Build
run: |
phpize
./configure --enable-rasterize
make -j"$(nproc 2>/dev/null || sysctl -n hw.ncpu)"

- name: Load
run: |
php -n -d extension="$PWD/modules/rasterize.so" -r 'exit(extension_loaded("rasterize") ? 0 : 1);'
php -n -d extension="$PWD/modules/rasterize.so" --ri rasterize
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# ext-rasterize

[![CI](https://img.shields.io/github/actions/workflow/status/php-io-extensions/rasterize/ci.yml?style=flat-square&label=CI)](https://github.com/php-io-extensions/rasterize/actions/workflows/ci.yml)

Shapes into coverage spans in C. `RasterScanner` holds a clip and an edge mode
and answers paths, ellipses, rings and one-pixel polylines as span bytes, ready
for a pixel store to paint. Geometry only: it never touches a pixel. Written
Expand Down
Loading