From 35d31be9cfd45b35a432329ac85c01bf6f307ade Mon Sep 17 00:00:00 2001 From: Snider Date: Fri, 6 Mar 2026 14:46:04 +0000 Subject: [PATCH] chore: replace Taskfile with .core/build.yaml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build config now in .core/build.yaml — `core build` handles CGO=0 default builds. FrankenPHP (CGO=1) handled separately. Co-Authored-By: Virgil --- .core/build.yaml | 28 ++++++++++++++++++++++++++++ Taskfile.yml | 23 ----------------------- 2 files changed, 28 insertions(+), 23 deletions(-) create mode 100644 .core/build.yaml delete mode 100644 Taskfile.yml diff --git a/.core/build.yaml b/.core/build.yaml new file mode 100644 index 0000000..a7299fd --- /dev/null +++ b/.core/build.yaml @@ -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 diff --git a/Taskfile.yml b/Taskfile.yml deleted file mode 100644 index 4d8f35e..0000000 --- a/Taskfile.yml +++ /dev/null @@ -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}}