Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b96062b621 | ||
|
|
35d31be9cf |
3 changed files with 29 additions and 24 deletions
28
.core/build.yaml
Normal file
28
.core/build.yaml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Core PHP build configuration
|
||||
# Used by: core build
|
||||
|
||||
version: 1
|
||||
|
||||
project:
|
||||
name: core-php
|
||||
description: PHP development CLI with FrankenPHP integration
|
||||
main: ./cmd/core-php
|
||||
binary: core-php
|
||||
|
||||
build:
|
||||
cgo: false
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
|
||||
targets:
|
||||
- os: linux
|
||||
arch: amd64
|
||||
- os: linux
|
||||
arch: arm64
|
||||
- os: darwin
|
||||
arch: arm64
|
||||
- os: windows
|
||||
arch: amd64
|
||||
23
Taskfile.yml
23
Taskfile.yml
|
|
@ -1,23 +0,0 @@
|
|||
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}}
|
||||
2
go.mod
2
go.mod
|
|
@ -4,7 +4,6 @@ go 1.26.0
|
|||
|
||||
require (
|
||||
forge.lthn.ai/core/cli v0.1.0
|
||||
forge.lthn.ai/core/go v0.1.0
|
||||
forge.lthn.ai/core/go-i18n v0.1.0
|
||||
forge.lthn.ai/core/go-io v0.0.1
|
||||
forge.lthn.ai/core/go-process v0.1.0
|
||||
|
|
@ -14,6 +13,7 @@ require (
|
|||
)
|
||||
|
||||
require (
|
||||
forge.lthn.ai/core/go v0.1.0 // indirect
|
||||
forge.lthn.ai/core/go-crypt v0.0.3 // indirect
|
||||
forge.lthn.ai/core/go-inference v0.0.2 // indirect
|
||||
forge.lthn.ai/core/go-log v0.0.1 // indirect
|
||||
|
|
|
|||
Reference in a new issue