Skip to content

Commit

Permalink
feat: include setting in action
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Sep 8, 2022
1 parent da8d18c commit 1760f15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ inputs:
description: 'File containing the config, defaults to {package}/pyproject.toml'
required: false
default: ''
print-build-identifiers:
description: 'Print build identifiers and exit. Set id: to access these in a later step'
required: false
default: ''
branding:
icon: package
color: yellow
Expand All @@ -36,5 +40,6 @@ runs:
${{ inputs.package-dir }}
--output-dir ${{ inputs.output-dir }}
--config-file "${{ inputs.config-file }}"
--print-build-identifiers "${{ inputs.print-build-identifiers }}"
2>&1
shell: bash
2 changes: 1 addition & 1 deletion cibuildwheel/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def build_in_directory(args: CommandLineArguments) -> None:
architectures=options.globals.architectures,
)

if args.print_build_identifiers is not None:
if args.print_build_identifiers:
for identifier in identifiers:
py_ver, os_plat = identifier.split("-")
impl = py_ver[:2]
Expand Down

0 comments on commit 1760f15

Please sign in to comment.