Skip to content

Allow bundles to be skipped from being built #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion release-gh/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ inputs:
for GitHub releases
required: true
default: ""
ignore-bundles:
description: |
A comma and space separated list of bundles to be skipped when building.
Valid options are py, mpy, example, and json. For example, to skip
building the MPY and example bundles, this field would be: mpy, example
required: true
default: ""
runs:
using: "composite"
steps:
Expand Down Expand Up @@ -63,9 +70,23 @@ runs:
else
echo prefix-arg="--package_folder_prefix ${{ inputs.package-prefix }}" >> $GITHUB_OUTPUT
fi
- name: Add the given bundle ignores
id: ignore-bundles-arg
shell: bash
run: |
if [ "${{ inputs.ignore-bundles }}" == "" ]; then
echo ignore-bundles="" >> $GITHUB_OUTPUT
else
echo ignore-bundles='--ignore "${{ inputs.ignore-bundles }}"' >> $GITHUB_OUTPUT
fi
- name: Build assets
shell: bash
run: circuitpython-build-bundles --filename_prefix ${{ steps.repo-name.outputs.repo-name }} --library_location . ${{ steps.package-prefix-arg.outputs.prefix-arg }}
run: |
circuitpython-build-bundles \
--filename_prefix ${{ steps.repo-name.outputs.repo-name }} \
--library_location . \
${{ steps.package-prefix-arg.outputs.prefix-arg }} \
${{ steps.ignore-bundles-arg.outputs.prefix-arg }}
- name: Upload Release Assets
uses: shogo82148/actions-upload-release-asset@v1
with:
Expand Down