planner

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeSpecHash

func ComputeSpecHash(cell *MatrixCell, catalogData []byte, builderHash string) string

ComputeSpecHash computes a deterministic hash for a matrix cell.

func WriteMatrices

func WriteMatrices(result *Result, outputDir string) error

WriteMatrices writes php.json, ext.json, tool.json to the output directory.

Types

type Matrix

type Matrix struct {
	Include []MatrixCell `json:"include"`
}

Matrix is the GitHub Actions matrix JSON format.

type MatrixCell

type MatrixCell struct {
	Version   string `json:"version,omitempty"`
	OS        string `json:"os"`
	Arch      string `json:"arch"`
	TS        string `json:"ts"`
	Digest    string `json:"digest,omitempty"`
	Extension string `json:"extension,omitempty"`
	ExtVer    string `json:"ext_version,omitempty"`
	PHPAbi    string `json:"php_abi,omitempty"`
}

MatrixCell represents one concrete build job.

func ExpandExtMatrix

func ExpandExtMatrix(spec *catalog.ExtensionSpec) []MatrixCell

ExpandExtMatrix expands an extension's abi_matrix, applying excludes.

func ExpandPHPMatrix

func ExpandPHPMatrix(spec *catalog.PHPSpec) []MatrixCell

ExpandPHPMatrix expands php.yaml's abi_matrix into concrete cells.

type Result

type Result struct {
	PHP  Matrix
	Ext  Matrix
	Tool Matrix
}

Result contains the three output matrices.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL