From 723b5e5128954599de9bf03f5353b751d0af73bd Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Mon, 21 Dec 2020 11:49:31 -0500 Subject: [PATCH] feat: add support for composite-actions --- action.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 00000000..9d23e023 --- /dev/null +++ b/action.yml @@ -0,0 +1,26 @@ +name: cibuildwheel +description: 'Installs and runs cibuildwheel on the current runner' +inputs: + package-dir: + description: 'Input directory, defaults to "."' + required: false + default: . + output-dir: + description: 'Folder to place the outputs in, defaults to "wheelhouse"' + required: false + default: wheelhouse +branding: + icon: package + color: yellow + +runs: + using: composite + steps: + + # This needs powershell-core because github.action path is a Windows-style + # path on Windows. Powershell-core understands both types of paths. + - run: python -m pip install ${{ github.action_path }} + shell: pwsh + + - run: python -m cibuildwheel ${{ inputs.package-dir }} --output-dir ${{ inputs.output-dir }} + shell: bash