mirror of
https://github.com/yaml/pyyaml.git
synced 2025-10-19 11:03:18 +00:00

* Cython 3.x support needed for Python 3.13 * Move CI to a dynamic matrix * Use GHA-hosted Apple Silicon runners * Move Windows builds to cibuildwheel * Implement rudimentary PEP517 config-settings passthru to setuptools with custom in-tree setuptools build backend shim (blocked Windows build being moved to cibuildwheel). * Use build_config.toml to smuggle JSON to cibuildwheel, since it trashes JSON via CLI when doing containerized builds.
22 lines
621 B
YAML
22 lines
621 B
YAML
name: Create matrix
|
|
description: Create matrix
|
|
inputs:
|
|
matrix_yaml:
|
|
description: input yaml matrix as multiline string; any entry with a bool true `omit` key will be filtered from the output matrix
|
|
required: true
|
|
outputs:
|
|
matrix_json:
|
|
description: filtered matrix as JSON
|
|
value: ${{ steps.matrix_gen.outputs.matrix_json }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
|
|
steps:
|
|
- id: matrix_gen
|
|
run: |
|
|
# FIXME: input sanity check to prevent shell injection
|
|
python3 $GITHUB_ACTION_PATH/matrix_yaml_to_json.py --from-stdin << EOF
|
|
${{ inputs.matrix_yaml }}
|
|
EOF
|
|
shell: bash
|