- Remove init() registration, use cli.Main() pattern - Build-tag FrankenPHP files (cgo/!cgo) - Add Taskfile.yml - Add CLAUDE.md Co-Authored-By: Virgil <virgil@lethean.io>
23 lines
447 B
YAML
23 lines
447 B
YAML
version: '3'
|
|
|
|
tasks:
|
|
build:
|
|
desc: Build core-php binary
|
|
cmds:
|
|
- CGO_ENABLED=0 go build -o ./bin/core-php ./cmd/core-php
|
|
|
|
build-frankenphp:
|
|
desc: Build with FrankenPHP support (needs PHP-ZTS)
|
|
cmds:
|
|
- go build -o ./bin/core-php ./cmd/core-php
|
|
|
|
test:
|
|
desc: Run tests
|
|
cmds:
|
|
- CGO_ENABLED=0 go test ./...
|
|
|
|
run:
|
|
desc: Build and run
|
|
cmds:
|
|
- task: build
|
|
- ./bin/core-php {{.CLI_ARGS}}
|